v2
OpenAPI 3.0.02026-07-311824171.4 MBModifies an existing order by changing its price, amount, and/or other properties such as time-in-force, post-only, reduce-only, trigger conditions, or advanced order type.
The order is identified by its order ID. Only open orders can be edited. Changes take effect immediately and may result in the order being filled if the new price matches the market.
📖 Related Article: Order Management Best Practices
Scope: trade:read_write
Query parameters
Unique order identifier
The order id
It represents the requested order size. For perpetual and inverse futures the amount is in USD units. For options and linear futures it is the underlying base currency coin. The amount is a mandatory parameter if contracts parameter is missing. If both contracts and amount parameter are passed they must match each other otherwise error is returned.
It represents the requested order size in contract units and can be passed instead of amount. The contracts is a mandatory parameter if amount parameter is missing. If both contracts and amount parameter are passed they must match each other otherwise error is returned.
If true, the order is considered reduce-only which is intended to only reduce a current position
advanced type: "usd" or "implv" (Only for options; field is omitted if not applicable).
Advanced option order type. If you have posted an advanced option order, it is necessary to re-supply this parameter when editing it (Only for options)
Trigger price, required for trigger orders only (Stop-loss or Take-profit orders)
The maximum deviation from the price peak beyond which the order will be triggered
Order MMP flag, only for order_type 'limit'
Timestamp, when provided server will start processing request in Matching Engine only before given timestamp, in other cases timed_out error will be responded. Remember that the given timestamp should be consistent with the server's time, use <a href='#public-get_time'>/public/time</a> method to obtain current server time.
Initial display amount for iceberg order. Has to be at least 100 times minimum amount for instrument and ratio of hidden part vs visible part has to be less than 100 as well.
Response
Success response
Example response
{
"result": {
"order": {
"order_id": "ETH-100234",
"instrument_name": "BTC-PERPETUAL",
"creation_timestamp": 1536569522277,
"last_update_timestamp": 1536569522277,
"starbase_last_update_timestamp": 1536569522277000000,
"block_trade": true,
"trigger_order_id": "SLIB-370",
"combo_order_id": "103148386169",
"starbase_order_id": 103148386170,
"app_name": "Example Application",
"mmp_cancelled": true,
"oto_order_ids": [
"ETH-100234"
],
"primary_order_id": "ETH-100234"
},
"trades": [
{
"instrument_name": "BTC-PERPETUAL",
"timestamp": 1517329113791,
"starbase_timestamp": 1536569522277000000,
"starbase_order_id": 103148386170,
"block_trade_id": "154",
"block_trade_leg_count": 3
}
]
}
}