curl --request PUT \
--url https://api.orderly.org/v1/algo/order \
--header 'Content-Type: application/json' \
--header 'orderly-account-id: <orderly-account-id>' \
--header 'orderly-key: <orderly-key>' \
--header 'orderly-signature: <orderly-signature>' \
--header 'orderly-timestamp: <orderly-timestamp>' \
--data '{
"order_id": "<string>",
"price": 123,
"quantity": 123,
"trigger_price": 123,
"trigger_price_type": "<string>",
"child_orders": [
{
"order_id": "<string>",
"trigger_price": 123,
"price": 123,
"quantity": 123,
"is_activated": "<string>",
"trigger_price_type": "<string>",
"child_orders": [
{}
]
}
]
}'
{
"success": true,
"timestamp": 1702989203989,
"data": {
"status": "EDIT_SENT"
}
}
Limit: 10 requests per 1 second
PUT /v1/algo/order
Edit a pending algo order by order_id
. Only the price or quantity can be amended.
Note: This endpoint requires trading scope in Orderly Key.
curl --request PUT \
--url https://api.orderly.org/v1/algo/order \
--header 'Content-Type: application/json' \
--header 'orderly-account-id: <orderly-account-id>' \
--header 'orderly-key: <orderly-key>' \
--header 'orderly-signature: <orderly-signature>' \
--header 'orderly-timestamp: <orderly-timestamp>' \
--data '{
"order_id": "<string>",
"price": 123,
"quantity": 123,
"trigger_price": 123,
"trigger_price_type": "<string>",
"child_orders": [
{
"order_id": "<string>",
"trigger_price": 123,
"price": 123,
"quantity": 123,
"is_activated": "<string>",
"trigger_price_type": "<string>",
"child_orders": [
{}
]
}
]
}'
{
"success": true,
"timestamp": 1702989203989,
"data": {
"status": "EDIT_SENT"
}
}
OK
The response is of type object
.