Interface: FuturesSubmitOrderReq
Req for POST /linear-swap-api/v1/swap_order. Isolated margin only.
Properties
| Property | Type | Description |
|---|---|---|
client_order_id? | number | Client order ID [1, 9223372036854775807] |
contract_code | string | Contract code (e.g. BTC-USDT). Required |
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 |
price? | string | number | Price. Required for limit, post_only, ioc, fok |
price_protect? | boolean | Price protection when setting tp/sl |
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 |