v21

latestOpenAPI 3.1.0raw.githubusercontent.com2026-05-2856132182.6 KB
Position

Set Trading Stop

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

post/api/v1/position/trading-stop

Request body

active_pricestring nullable
sl_sizestring nullable

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

sub_account_addressstring required
symbolstring required
tp_sizestring nullable

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

trailing_stopstring nullable

Example request

{
  "symbol": "BTCUSDC"
}

Response

Trading stop set

successboolean required
timestring date-time required

Example response

{
  "time": "1672531200000"
}