Skip to main content

Create Trigger Orders

Type: POST

Description: /future/trade/v1/entrust/create-plan

Remark: Content-Type = application/x-www-form-urlencoded && application/json

Limit Flow Rules

200/s/apikey

Parameters

NameTypeMandatoryDefaultDescriptionRanges
clientOrderIdstringfalseN/AClient order ID
symbolstringtrueTrading pair
orderSidestringtrueN/AOrder side: BUY; SELLBUY;SELL
entrustTypestringtrueN/AOrder type: TAKE_PROFIT (Take Profit Limit Order); STOP (Stop Limit Order); TAKE_PROFIT_MARKET (Take Profit Market Order); STOP_MARKET (Stop Loss Market Order)TAKE_PROFIT;STOP;TAKE_PROFIT_MARKET;STOP_MARKET
origQtynumbertrueN/AQuantity (Cont)
pricenumberfalseN/APrice
stopPricenumbertrueN/ATrigger price
timeInForcestringtrueN/AValid way: GTC; IOC; FOK; GTX. Market orders only support IOCGTC;IOC;FOK;GTX
triggerPriceTypestringtrueN/ATrigger price type: INDEX_PRICE (Index price); MARK_PRICE (Mark price); LATEST_PRICE (latest price)INDEX_PRICE;MARK_PRICE;LATEST_PRICE
positionSidestringtrueN/APosition side: LONG; SHORTLONG;SHORT

Request Example

Response
{
"error": {
"code": "",
"msg": ""
},
"msgInfo": "",
"result": {},
"returnCode": 0
}