Skip to main content

Get orders

Returns open orders. When orderId or clOrderId is provided, returns that single order; otherwise returns the caller's open orders, optionally filtered by symbol.

Request Parameters​

NameTypeRequiredDescription
orderIdStringNoServer-assigned order id to look up a single order.
clOrderIdStringNoClient-assigned order id to look up a single order.
symbolStringNoTrading pair symbol to filter open orders. Ignored when orderId or clOrderId is provided.
includeCancelledBooleanNoIf true, cancelled orders are included in the result. Only honored when looking up by orderId or clOrderId.

Response Content​

NameTypeDescription
orderIdStringServer-assigned order id.
clOrderIdStringClient-assigned order id echoed from placement.
symbolStringTrading pair symbol.
orderSideStringOrder side: BUY or SELL.
typeIntegerOrder type code.
orderPriceDoubleLimit price of the order.
originalOrderSizeIntegerOriginal order size in number of contracts at placement.
currentOrderSizeIntegerCurrent remaining order size in number of contracts after fills and amendments.
totalFilledSizeIntegerCumulative filled size in number of contracts.
remainingSizeIntegerRemaining unfilled size in number of contracts.
averageFillPriceDoubleAverage fill price across executions so far.
orderStateStringHuman-readable order state name.
timestampLongServer timestamp of the last state change, in milliseconds since epoch.
reduceOnlyBooleanTrue if the order can only reduce an existing position.
positionModeStringPosition mode this order applies to (one-way or hedge). β€” ONE_WAY Β· HEDGE Β· ISOLATED
positionDirectionStringPosition direction the order affects: LONG or SHORT.
positionIdStringIdentifier of the position the order is bound to.
closeOrderBooleanTrue if the order is a close-position order.
pegPriceMinDoubleLower bound of the peg order price band.
pegPriceMaxDoubleUpper bound of the peg order price band.
pegPriceDeviationDoubleOffset applied to the pegged reference price.
currentPegPriceDoubleCurrent pegged working price.
triggerOrderBooleanTrue if this order is a conditional trigger order that has not yet fired.
triggeredBooleanTrue once the trigger condition has fired.
triggerPriceDoubleConfigured trigger price.
triggerOriginalPriceDoubleOriginal submitted trigger price prior to any amendment.
triggerOrderTypeIntegerOrder type code the trigger will submit once fired.
triggerTrailingStopDeviationDoubleTrailing distance for the trigger's trailing-stop behavior.
triggerStopPriceDoubleStop price used by the triggered order once activated.
triggerUseLastPriceBooleanTrue if last-traded-price is used as the trigger reference, otherwise mark price is used.
trailValueDoubleTrailing distance the stop maintains from the best reached reference price.
trailValueTypeStringHow trailValue is interpreted (absolute price offset or percentage). β€” DISTANCE Β· PERCENTAGE
activationPriceDoublePrice at which trailing or scheduled logic activates.
activationPriceTypeStringReference price type used to evaluate the activation price. β€” INDEX_PRICE Β· LAST_PRICE Β· MARK_PRICE
cancelDurationLongCancel duration in milliseconds derived from time-in-force. Zero for GTC.
timeInForceStringTime-in-force policy applied to the order (e.g. GTC, IOC, FOK).
stealthDoublePortion of the order size displayed on the book; the remainder is hidden.
contractSizeDoubleContract size (units of underlying per contract) for this symbol.
wrapperOrderBooleanTrue if the order is a wrapper that spawns child orders (e.g. activation wrappers).
ocoPeerOrderIdStringOrder id of the peer OCO leg, if this order is part of an OCO pair.
orderDetailTypeStringFine-grained order detail type classification. β€” TWAP Β· PARTIAL_LIQUIDATION Β· FORCED_MARKET_BUY Β· FORCED_MARKET_SELL
originalOrderValueDoubleNotional value at placement, computed from original size, contract size and reference price.
currentOrderValueDoubleCurrent notional value, computed from remaining size, contract size and current working price.

takeProfitOrder:

NameTypeDescription
orderIdStringServer-assigned order id of the attached trigger order.
sideStringOrder side of the trigger leg: BUY or SELL.
triggerPriceDoublePrice at which this trigger fires.
triggerUseLastPriceBooleanTrue if last-traded-price is used as the trigger reference, otherwise mark price is used.

stopLossOrder:

NameTypeDescription
orderIdStringServer-assigned order id of the attached trigger order.
sideStringOrder side of the trigger leg: BUY or SELL.
triggerPriceDoublePrice at which this trigger fires.
triggerUseLastPriceBooleanTrue if last-traded-price is used as the trigger reference, otherwise mark price is used.
example
GEThttps://api.btse.com/futures/api/v3/trade/orders

Response (default)

[
{
"orderId": "0251ea47-88b5-48c0-aeb3-b38774fd1f90",
"clOrderId": "",
"symbol": "BTC-PERP",
"orderSide": "BUY",
"type": 76,
"orderPrice": 56439.4,
"originalOrderSize": 1,
"currentOrderSize": 1,
"totalFilledSize": 0,
"remainingSize": 1,
"averageFillPrice": 0,
"orderState": "STATUS_ACTIVE",
"timestamp": 1784882344358,
"reduceOnly": false,
"positionMode": "ONE_WAY",
"positionDirection": null,
"positionId": "BTC-PERP-USDT",
"closeOrder": false,
"pegPriceMin": 0,
"pegPriceMax": 0,
"pegPriceDeviation": 1,
"currentPegPrice": 56439.4,
"triggerOrder": false,
"triggered": false,
"triggerPrice": 0,
"triggerOriginalPrice": 0,
"triggerOrderType": 0,
"triggerTrailingStopDeviation": 0,
"triggerStopPrice": 0,
"triggerUseLastPrice": false,
"trailValue": 0,
"trailValueType": "DISTANCE",
"activationPrice": null,
"activationPriceType": null,
"takeProfitOrder": null,
"stopLossOrder": null,
"cancelDuration": 0,
"timeInForce": "GTC",
"stealth": 1,
"contractSize": 0.00001,
"wrapperOrder": false,
"ocoPeerOrderId": null,
"orderDetailType": null,
"originalOrderValue": 0.564394,
"currentOrderValue": 0.564394
}
]