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
| Property | Type | Description |
|---|---|---|
contract_code | string | Contract code (e.g. BTC-USDT) |
direction | FuturesDirection | buy or sell |
price_protect? | boolean | Price protection. Default false. Only when setting tp/sl |
sl_order_price? | string | number | Stop-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 | number | Stop-loss trigger price |
tp_order_price? | string | number | Take-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 | number | Take-profit trigger price |
volume | string | number | Volume (number of contracts) |