Skip to main content
POST
Set Trading Stop

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Set the take profit, stop loss or trailing stop for the position.

sub_account_address
string
required
symbol
string
required
Example:

"BTC-USDCx"

active_price
string | null
sl_size
string | null

Stop loss size valid for TP/SL partial mode, note: the value of tpSize and slSize must equal

tp_size
string | null

Take profit size valid for TP/SL partial mode, note: the value of tpSize and slSize must equal

tpsl
null | object
trailing_stop
string | null

Response

200 - application/json

Trading stop set

Response for setting trading stop.

success
boolean
required
time
string<date-time>
required
Example:

"1672531200000"