API Reference

Replace Algo Order

Rate Limit: 3 requests per 10 seconds

Only apply for TPSL and DMA order with attached TPSL

Request

Field nameTypeNecessaryRemarks
algoOrderIdStringNAlgo order ID
clientOrderIdStringNCustomer defined order ID
orderQtyStringNAlgo order quantity;
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 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