Interface: FuturesCrossSubmitOrderReq
Req for POST /linear-swap-api/v1/swap_cross_order. Cross margin only. One of contract_code or (pair+contract_type) required.
Properties
| Property | Type | Description |
|---|---|---|
client_order_id? | number | Client order ID [1, 9223372036854775807] |
contract_code? | string | Contract code. swap: BTC-USDT, future: BTC-USDT-210625. Omit if pair+contract_type |
contract_type? | string | swap, this_week, next_week, quarter, next_quarter |
direction | FuturesDirection | buy or sell |
lever_rate | number | Leverage rate |
offset? | FuturesOffsetBoth | open, close, both. Required in hedge mode |
order_price_type | FuturesSubmitOrderPriceType | Order price type |
pair? | string | Pair (e.g. BTC-USDT). Use with contract_type |
price? | string | number | Price. Required for limit, post_only, ioc, fok |
reduce_only? | 0 | 1 | 0: no, 1: yes |
self_match_prevent? | 0 | 1 | 0: allow self-trade, 1: prevent (default) |
self_match_prevent_new? | FuturesSelfMatchPrevent | cancel_taker, cancel_maker, cancel_both |
sl_order_price? | string | number | Stop-loss order price |
sl_order_price_type? | string | Stop-loss order type |
sl_trigger_price? | string | number | Stop-loss trigger price |
tp_order_price? | string | number | Take-profit order price |
tp_order_price_type? | string | Take-profit order type |
tp_trigger_price? | string | number | Take-profit trigger price |
volume | number | Order quantity |