Skip to main content

Query Order

Queries order details. Cancelled orders are only available for 30 minutes after cancellation.

Request Parameters​

NameTypeRequiredDescription
orderIDStringNoInternal order ID. Takes precedence over clOrderID if both provided
clOrderIDStringNoCustom order ID. Required if orderID not provided

Response Content​

NameTypeDescription
orderIDStringOrder ID
symbolStringMarket symbol
orderTypeIntegerOrder type
sideStringTrade side
priceDoubleOrder price
orderValueDoubleTotal order value
originalOrderSizeIntegerOriginal quantity
currentOrderSizeIntegerLatest quantity
totalFilledSizeIntegerCumulative filled quantity
remainingSizeIntegerRemaining quantity
pegPriceMinDoubleMin peg price
pegPriceMaxDoubleMax peg price
pegPriceDeviationDoubleDeviation from index price (%)
timestampLongOrder timestamp
triggerOrderBooleanWhether it is a trigger order
triggerPriceDoubleTrigger price
triggerOriginalPriceDoubleOriginal trigger price
triggerOrderTypeIntegerTrigger order type
triggerTrailingStopDeviationDoubleTrailing stop deviation (%)
triggerStopPriceDoubleStop price (Algo only)
triggeredBooleanWhether trigger has fired
trailValueDoubleTrail value
clOrderIDStringCustom order ID
avgFilledPriceDoubleAverage filled price
statusIntegerOrder status code: 2 (ORDER_INSERTED) Β· 4 (FULLY_MATCHED) Β· 5 (PARTIAL_FILL) Β· 6 (CANCELLED) Β· 9 (TRIGGER_INSERTED) Β· 10 (TRIGGER_ACTIVATED) Β· 15 (REJECTED)
takeProfitOrderObjectTake profit order info
stopLossOrderObjectStop loss order info
closeOrderBooleanWhether it closes a position
timeInForceStringOrder validity
contractSizeDoubleContract size
example
GEThttps://api.btse.com/futures/api/v2.3/order