Modify order
Modify an existing open limit order or TPSL order by changing its price, size, and/or trigger_price.
For untriggered TPSL orders, you can modify trigger_price, price (limit orders only), and size. Once a TPSL limit order triggers you can modify its price and size just like a regular limit order, but the trigger_price is no longer modifiable.
TPSL market orders execute immediately when triggered and cannot be modified afterwards.
The modified order maintains its original order ID.
Path parameters
Order Id
Request body
Example request
{
"market": "BTC-USD-PERP",
"on_behalf_of_account": "0x1234567890abcdef",
"price": "29500.12",
"side": "BUY",
"size": "1.213",
"trigger_price": "29500.12",
"type": "LIMIT"
}Response
OK
Example response
{
"account": "0x4638e3041366aa71720be63e32e53e1223316c7f0d56f7aa617542ed1e7512x",
"avg_fill_price": "26000",
"cancel_reason": "NOT_ENOUGH_MARGIN",
"client_id": "x1234",
"created_at": 1681493746016,
"id": "123456",
"last_updated_at": 1681493746016,
"market": "BTC-USD-PERP",
"price": "26000",
"published_at": 1681493746016,
"received_at": 1681493746016,
"remaining_size": "0",
"seq_no": 1681471234972000000,
"size": "0.05",
"timestamp": 1681493746016,
"trigger_price": "26000"
}Changes
Changed in 1 of the 50 revisions of this API.12
- ▲
added required request body
request-body-added-required
- ○
added the media type
application/jsonfor the response with the status200response-media-type-added
- ○
added the media type
application/jsonfor the response with the status400response-media-type-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲