Interface: FuturesSubmitCrossTrailingOrderReq
Req for POST /linear-swap-api/v1/swap_cross_track_order. [Cross] Submit a Trailing Order. Cross margin only. One of (pair+contract_type) or contract_code required; contract_code preferred when all filled. Trade. 5/s.
Properties
| Property | Type | Description |
|---|---|---|
active_price | string | number | Active price |
callback_rate | string | number | Callback rate (e.g. 0.01 = 1%). Min 0.001 (0.1%) |
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 |
lever_rate? | number | Leverage. Required when open, optional when close |
offset? | FuturesOffsetBoth | open, close, both. Hedge mode required; one-way optional, must be both when filled |
order_price_type | FuturesTrailingOrderPriceType | optimal_5, optimal_10, optimal_20, formula_price |
pair? | string | Pair (e.g. BTC-USDT). Use with contract_type |
reduce_only? | 0 | 1 | 0: no, 1: yes. In hedge mode invalid; one-way: 0 when not filled. reduce_only=1 for open triggers error 1492 |
volume | string | number | Volume (contracts) |