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 8 of the 65 revisions of this API.8329
- ●
added the new
BLOCK_TRADE_REPLAYED_SIGNATUREenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
EVM_VAULT_OPERATORS_DISABLEDenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
VAULT_DATA_PRIVATEenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
- ○
removed the
INVALID_RHINOFI_QUOTEenum value from the////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
INVALID_RHINOFI_QUOTE_COMMITenum value from the////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
INVALID_RHINOFI_REQUESTenum value from the////response property for the response statusresponse-property-enum-value-removed
- ○
- ●
added the new
IP_NOT_ALLOWEDenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
MARKET_NOT_SETTLEDenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
- ●
added the new
BLOCK_TRADE_INVALID_SIGNATUREenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
BLOCK_TRADE_SIGNER_KEY_UNAUTHORIZEDenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
- ●
added the new
EVM_ADDRESS_ALREADY_ONBOARDEDenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
INSUFFICIENT_EVM_BALANCEenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
PORTFOLIO_MARGIN_INVALID_ACCOUNT_KINDenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
PORTFOLIO_MARGIN_ONBOARDING_DISABLEDenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
- ○
removed the
BAD_STARKNET_REQUESTenum value from the////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
INVALID_PRICE_PRECISIONenum value from the////response property for the response statusresponse-property-enum-value-removed
- ○
removed the
TRANSACTION_NOT_FOUNDenum value from the////response property for the response statusresponse-property-enum-value-removed
- ○
- ▲
the
response's property type changed fromobjectto no type for statusresponse-property-type-changed
- ▲
the
response's property type changed fromobjectto no type for statusresponse-property-type-changed
- ▲
the
response's property type changed fromobjectto no type for statusresponse-property-type-changed
- ▲
the
response's property type changed fromobjectto no type for statusresponse-property-type-changed
- ▲
the
response's property type changed fromobjectto no type for statusresponse-property-type-changed
- ▲
the
response's property type changed fromobjectto no type for statusresponse-property-type-changed
- ▲
the
response's property type changed fromobjectto no type for statusresponse-property-type-changed
- ●
added the new
BLOCK_TRADE_ACCOUNT_MISMATCHenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
BLOCK_TRADE_ALREADY_CANCELLEDenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
BLOCK_TRADE_EXPIREDenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
BLOCK_TRADE_INVALID_STATUSenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
BLOCK_TRADE_MISSING_SIGNATUREenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
BLOCK_TRADE_MISSING_SIGNERSenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
BLOCK_TRADE_MISSING_TRADESenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
BLOCK_TRADE_NOT_ENABLEDenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
BLOCK_TRADE_NOT_FOUNDenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
BLOCK_TRADE_UNAUTHORIZEDenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
EVM_SIGNATURE_VERIFICATION_FAILEDenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
INVALID_EVM_SIGNATUREenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
MEDIA_NOT_FOUNDenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
OFFER_ALREADY_CANCELLEDenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
OFFER_INVALID_STATUSenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
OFFER_PARENT_MISMATCHenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
OFFER_PARENT_NOT_ACCEPTINGenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
OFFER_UNAUTHORIZEDenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
PORTFOLIO_MARGIN_CONFIG_NOT_FOUNDenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
SUBKEY_NOT_ACTIVATABLEenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
XP_TRANSFERS_DISABLEDenum value to the////response property for the response statusresponse-property-enum-value-added
- ○
removed the
INVALID_JOIN_WAITLIST_REQUESTenum value from the////response property for the response statusresponse-property-enum-value-removed
- ▲
- ▲
added required request body
request-body-added-required
- ○
added the media type
application/jsonfor the response with the statusresponse-media-type-added
- ○
added the media type
application/jsonfor the response with the statusresponse-media-type-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲