CreateOrderRequest
Market symbol
Order size in contract units
Order side
Possible values: [BUY, SELL]
Order type: LIMIT · MARKET · OCO (One-Cancels-the-Other)
Possible values: [LIMIT, MARKET, OCO]
Required for LIMIT orders
Time in force: GTC (Good Till Cancelled) · IOC (Immediate Or Cancel) · FOK (Fill Or Kill) · HALFMIN (30 seconds) · FIVEMIN (5 minutes) · HOUR (1 hour) · TWELVEHOUR (12 hours) · DAY (1 day) · WEEK (1 week) · MONTH (1 month)
Possible values: [GTC, IOC, FOK, HALFMIN, FIVEMIN, HOUR, TWELVEHOUR, DAY, WEEK, MONTH]
Transaction type: LIMIT (default) · STOP (requires triggerPrice) · TRIGGER (requires triggerPrice)
Possible values: [LIMIT, STOP, TRIGGER]
Required for OCO orders
Required for STOP, TRIGGER, and OCO orders
Trail value. TP/SL not supported when set
Post-only order — charged maker fee
Reduce-only order
Custom order ID
Trigger type for STOP/TRIGGER: markPrice (default) or lastPrice
Possible values: [markPrice, lastPrice]
Take profit trigger price
Take profit trigger type: markPrice (default) or lastPrice
Possible values: [markPrice, lastPrice]
Stop loss trigger price
Stop loss trigger type: markPrice (default) or lastPrice
Possible values: [markPrice, lastPrice]
Position mode: ONE_WAY (default) · HEDGE · ISOLATED
Possible values: [ONE_WAY, HEDGE, ISOLATED]
{
"symbol": "string",
"size": 0,
"side": "BUY",
"type": "LIMIT",
"price": 0,
"time_in_force": "GTC",
"txType": "LIMIT",
"stopPrice": 0,
"triggerPrice": 0,
"trailValue": 0,
"postOnly": true,
"reduceOnly": true,
"clOrderID": "string",
"trigger": "markPrice",
"takeProfitPrice": 0,
"takeProfitTrigger": "markPrice",
"stopLossPrice": 0,
"stopLossTrigger": "markPrice",
"positionMode": "ONE_WAY"
}