Skip to main content

Submit entrust order (TP/SL & tracking)

POST

/az/spot/entrust-order

Remark​

ENTRUST_PROFIT is for take-profit/stop-loss orders, triggered by triggerPrice; ENTRUST_TRACK is for tracking orders, driven by activePrice/turnRate/priceDiff.

Limit Flow Rules​

20/s/apikey

Parameters​

ParameterTypeMandatoryDefaultDescriptionRanges
symbolstringtruetrading pair
clientOrderIdstringfalseclient order id (max 32 chars)
sidestringtrueBUY,SELL
typestringtrueentrust order type:ENTRUST_PROFIT(take-profit/stop-loss),ENTRUST_TRACK(tracking order)
timeInForcestringtrueeffective way:GTC, FOK, IOC, GTX, GTX_SELF_CANCEL
bizTypestringtrueSPOT
quantitynumberfalsequantity. Required for TP/SL; required when tracking order sells
quoteQtynumberfalseamount. Not filled for TP/SL; required when tracking order buys
pricenumberfalseentrust price, used by TP/SL
triggerPricenumberfalsetrigger price, used by TP/SL
activePricenumberfalseactivation price, used by tracking order (optional)
turnRatenumberfalsecallback rate, used by tracking order, between 0.1 and 100
priceDiffnumberfalseprice distance, used by tracking order

Request

{
"symbol": "BTC_USDT",
"clientOrderId": "16559590087220001",
"side": "SELL",
"type": "ENTRUST_PROFIT",
"timeInForce": "GTC",
"bizType": "SPOT",
"quantity": 2,
"price": 40000,
"triggerPrice": 41000
}

Response

{
"rc": 0,
"mc": "string",
"ma": [
{}
],
"result": {
"orderId": "6216559590087220004", // entrust order id
"clientOrderId": "16559590087220001" // client order id
}
}