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
Query Params
string
required
Defaults to ETHUSDT-PERPETUAL

Name of the contract

string
required
Defaults to LONG

position side,LONG or SHORT

string
Defaults to 4000

stop profit price

string

stop loss price

string

take profit The price type to trigger take profit: MARK_PRICE, CONTRACT_PRICE. Default CONTRACT_PRICE

string

stop loss The price type to trigger stop loss: MARK_PRICE, CONTRACT_PRICE. Default CONTRACT_PRICE

int64
required
Defaults to 1716712463018

Timestamp

string
required
Defaults to ad7f8912848c2173a5bf5a989a18ecc2e578bd2c8e2876fe318a8ea8caeaefed

Signature

Responses

Language
Credentials
Click Try It! to start a request and see the response here! Or choose an example:
application/json