Skip to main content

Create New Order

Creates a new order. Supports MARKET, LIMIT, OCO, trigger, and TP/SL orders.

Tip: Use clOrderID to track orders with your own identifier.

For trigger orders, set txType to STOP or TRIGGER and provide triggerPrice. Attach take-profit and stop-loss using takeProfitPrice/stopLossPrice parameters.

Supports one-way and hedge position modes via positionMode.

Request Parameters

NameTypeRequiredDescription
symbolStringYesMarket symbol
sizeLongYesOrder size in contract units
sideStringYesOrder side — BUY · SELL
typeStringYesOrder type: LIMIT · MARKET · OCO (One-Cancels-the-Other)
priceDoubleNoRequired for LIMIT orders
time_in_forceStringNoTime 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)
txTypeStringNoTransaction type: LIMIT (default) · STOP (requires triggerPrice) · TRIGGER (requires triggerPrice)
stopPriceDoubleNoRequired for OCO orders
triggerPriceDoubleNoRequired for STOP, TRIGGER, and OCO orders
trailValueDoubleNoTrail value. TP/SL not supported when set
postOnlyBooleanNoPost-only order — charged maker fee
reduceOnlyBooleanNoReduce-only order
clOrderIDStringNoCustom order ID
triggerStringNoTrigger type for STOP/TRIGGER: markPrice (default) or lastPrice
takeProfitPriceDoubleNoTake profit trigger price
takeProfitTriggerStringNoTake profit trigger type: markPrice (default) or lastPrice
stopLossPriceDoubleNoStop loss trigger price
stopLossTriggerStringNoStop loss trigger type: markPrice (default) or lastPrice
positionModeStringNoPosition mode: ONE_WAY (default) · HEDGE · ISOLATED

Response Content

NameTypeDescription
symbolStringMarket symbol
orderIDStringOrder ID
clOrderIDStringCustom order ID
orderTypeInteger76: Limit · 77: Market · 80: Algo
sideStringTrade side
priceDoubleOrder price
statusIntegerOrder status code: 2 (ORDER_INSERTED) · 4 (FULLY_MATCHED) · 5 (PARTIAL_FILL) · 6 (CANCELLED) · 9 (TRIGGER_INSERTED) · 10 (TRIGGER_ACTIVATED) · 15 (REJECTED)
time_in_forceStringTime in force: GTC · IOC · FOK · HALFMIN · FIVEMIN · HOUR · TWELVEHOUR · DAY · WEEK · MONTH
timestampLongOrder timestamp
triggerBooleanWhether order is a trigger order
triggerPriceDoubleTrigger price (0 if not a trigger order)
avgFilledPriceDoubleAverage filled price
messageStringTrade message
stealthDoubleAlgo orders only
deviationDoubleAlgo orders only
remainingSizeIntegerCurrent order size minus filled size
originalOrderSizeIntegerOriginal quantity — unchanged after amendments
currentOrderSizeIntegerLatest quantity (filled + remaining)
filledSizeIntegerQuantity filled in this update
totalFilledSizeIntegerCumulative filled quantity
postOnlyBooleanWhether order is post-only
positionModeStringONE_WAY · HEDGE · ISOLATED
positionDirectionStringPosition direction: LONG · SHORT (only present in HEDGE/ISOLATED mode)
positionIdStringPosition ID
example
POSThttps://api.btse.com/futures/api/v2.3/order

Request (MARKET order)

{
"symbol": "BTC-PERP",
"size": 10,
"side": "BUY",
"type": "MARKET"
}

Request (LIMIT order)

{
"symbol": "BTC-PERP",
"size": 10,
"price": 21000,
"side": "BUY",
"type": "LIMIT"
}

Request (LIMIT STOP order)

{
"symbol": "BTC-PERP",
"size": 10,
"price": 21000,
"side": "BUY",
"type": "LIMIT",
"txType": "STOP",
"triggerPrice": 30000
}

Request (OCO order)

{
"symbol": "BTC-PERP",
"size": 10,
"price": 21000,
"side": "BUY",
"type": "OCO",
"txType": "LIMIT",
"trigger": "markPrice",
"stopPrice": 30010,
"triggerPrice": 30000
}

Request (LIMIT with TP/SL)

{
"symbol": "BTC-PERP",
"size": 10,
"price": 29000,
"side": "BUY",
"type": "LIMIT",
"takeProfitPrice": 31000,
"takeProfitTrigger": "markPrice",
"stopLossPrice": 27000,
"stopLossTrigger": "lastPrice"
}