Replace Algo Order

Rate Limit: 3 requests per 10 seconds

Place a new algo order, this api is asynchronous. Returning success only means that the request is successful. The final result needs to be confirmed through websocket subscription and order query.

Request

Field nameTypeNecessaryRemarks
algoOrderIdStringNAlgo order ID
clientOrderIdStringNCustomer defined order ID ,only support letters(a-z) and numbers(0-9)
orderQtyStringNOrder quantity(Mandatory, unless spot market buy ) note: trading unit of OKX is the number of contracts/ trading unit of Binance is the number of coin

TP/SL

Field nameTypeNecessaryRemarks
conditionalTriggerPriceStringNConditional Order Trigger Price
conditionalTriggerTypeStringNConditional Order Trigger Price Type:
LAST_PRICE, MARK_PRICE
conditionalPriceStringNLimit Price After Triggering Conditional Order ;
0 Indicates Market Price.
tpTriggerPriceStringNTake-profit trigger price.
tpTriggerTypeStringNTake-profit trigger price type:
LAST_PRICE, MARK_PRICE
The default is LAST_PRICE
tpPriceStringNTake-profit order price;
If the price is 0, take-profit will be executed at the market price.
slTriggerPriceStringNStop-loss trigger price
slTriggerTypeStringNStop-loss trigger price type:
LAST_PRICE, MARK_PRICE
The default is LAST_PRICE
slPriceStringNStop-loss order price;
If the price is 0, stop-loss will be executed at the market price.

Response

Field nameTypeRemarks
algoOrderIdStringAlgo order ID
clientOrderIdStringCustomer defined order ID
Language