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
Body Params
string

Algo order ID

string

Customer defined order ID

string

Order quantity

string

Conditional Order Trigger Price

string

LAST_PRICE, MARK_PRICE

string

Limit Price After Triggering Conditional Order ; 0 Indicates Market Price.

string

Take-profit trigger price

string
Defaults to LAST_PRICE

LAST_PRICE, MARK_PRICE

string
Defaults to "0"

Take-profit order price; If the price is 0, take-profit will be executed at the market price.

string

Stop-loss trigger price

string
Defaults to LAST_PRICE

LAST_PRICE, MARK_PRICE

string
Defaults to "0"

Stop-loss order price; If the price is 0, stop-loss will be executed at the market price.

Responses

Language
Request
Choose an example:
application/json