Interface: FuturesSubmitCrossTriggerOrderReq
Req for POST /linear-swap-api/v1/swap_cross_trigger_order. [Cross] Submit Trigger 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 |
|---|---|---|
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. Long = short leverage. High leverage = high risk |
offset? | FuturesOffsetBoth | open, close, both. In hedge mode required; in one-way mode optional, must be both when filled |
order_price? | string | number | Order price (required when order_price_type is limit) |
order_price_type? | FuturesTriggerOrderPriceType | limit (default), optimal_5, optimal_10, optimal_20 |
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 in one-way triggers error 1492 |
trigger_price | string | number | Trigger price |
trigger_type | FuturesTriggerType | ge: Equal to or Greater than; le: Less than or Equal to |
volume | number | Volume (number of contracts) |