Skip to content

Interface: FuturesSubmitTpslOrderReq ​

Req for POST /linear-swap-api/v1/swap_tpsl_order. [Isolated] Set Take-profit and Stop-loss for existing position. Isolated margin only. At least one of tp_trigger_price and sl_trigger_price required. Trade. 5/s.

Properties ​

PropertyTypeDescription
contract_codestringContract code (e.g. BTC-USDT)
directionFuturesDirectionbuy or sell
price_protect?booleanPrice protection. Default false. Only when setting tp/sl
sl_order_price?string | numberStop-loss order price (not required for optimal_5/10/20)
sl_order_price_type?"market" | "limit" | "optimal_5" | "optimal_10" | "optimal_20"market (default), limit, optimal_5, optimal_10, optimal_20
sl_trigger_price?string | numberStop-loss trigger price
tp_order_price?string | numberTake-profit order price (not required for optimal_5/10/20)
tp_order_price_type?"market" | "limit" | "optimal_5" | "optimal_10" | "optimal_20"market (default), limit, optimal_5, optimal_10, optimal_20
tp_trigger_price?string | numberTake-profit trigger price
volumestring | numberVolume (number of contracts)

Built by Siebly. Open source SDKs for exchange APIs.