API Reference

Set trading stop

Weight: 3

Request Parameters


PARAMETERTYPEReq'dExample valuesDESCRIPTION
symbolSTRINGYName of the contract
sideENUMYposition side,LONG or SHORT
stopProfitSTRINGREQUIRED for stopLoss not sendstop profit price
stopLossSTRINGREQUIRED for stopProfit not sendstop loss price
tpTriggerByENUMtake profit The price type to trigger take profit: MARK_PRICE, CONTRACT_PRICE. Default CONTRACT_PRICE
slTriggerByENUMstop loss The price type to trigger stop loss: MARK_PRICE, CONTRACT_PRICE. Default CONTRACT_PRICE
recvWindowLONG5000recv window
timestampLONGY1714311403031Timestamp

Response Content


PARAMETERTYPEExample valuesDESCRIPTION
symbolSTRINGBTCUSDT-PERPETUALName of the contract
sideSTRINGLONGPosition side, LONG or SHORT
stopProfitSTRING29037.2Stop profit price
stopLossSTRING27037Stop loss price
tpTriggerByENUMCONTRACT_PRICEThe price type to trigger take profit: MARK_PRICE, CONTRACT_PRICE
slTriggerByENUMCONTRACT_PRICEThe price type to trigger stop loss: MARK_PRICE, CONTRACT_PRICE
Language
Credentials
Header
Click Try It! to start a request and see the response here!