Interface: FuturesSubmitCrossTpslOrderReq
Req for POST /linear-swap-api/v1/swap_cross_tpsl_order. [Cross] Set Take-profit and Stop-loss for existing position. Cross margin only. One of (pair+contract_type) or contract_code required; contract_code preferred when all filled. At least one of tp_trigger_price and sl_trigger_price required. Trade. 5/s.
Properties
| Property | Type | Description |
|---|---|---|
contract_code? | string | Contract code. swap: BTC-USDT; future: BTC-USDT-210625. Preferred when all filled |
contract_type? | string | swap, this_week, next_week, quarter, next_quarter |
direction | FuturesDirection | buy or sell |
pair? | string | Pair (e.g. BTC-USDT). Use with contract_type |
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) |