Skip to main content

Get order

Retrieve a single order by orderId or clOrderId. Returns 404 if the order does not exist or is inactive.

Request Parameters​

NameTypeRequiredDescription
orderIdStringNoOrder ID to look up; at least one of orderId or clOrderId is required
clOrderIdStringNoClient-supplied order ID to look up; at least one of orderId or clOrderId is required

Response Content​

NameTypeDescription
requestIdLongRequest identifier associated with the order submission.
orderIdStringServer-assigned unique order identifier.
clOrderIdStringClient-supplied order identifier (custom tag).
symbolStringTrading pair, formatted as BASE-QUOTE (e.g. BTC-USDT).
quoteStringQuote currency of the trading pair.
orderStateStringCurrent order status label (e.g. active, inactive, cancelled).
orderTypeIntegerNumeric order-type code (limit, market, peg, TWAP).
orderSideStringOrder side: BUY or SELL.
orderPriceDoubleOrder limit price. Zero for market orders.
orderValueDoubleCurrent order value expressed in the user's account currency.
timestampLongOrder creation timestamp in Unix epoch milliseconds.
timeInForceStringTime-in-force policy: GTC, IOC, FOK, or null if not applicable.
orderCurrencyStringIndicates which size fields are populated: "quote" (quote-denominated) or "base" (base-denominated).
originalOrderBaseSizeDoubleOriginal order size in base currency. Populated only when orderCurrency is "base".
originalOrderQuoteSizeDoubleOriginal order size in quote currency. Populated only when orderCurrency is "quote".
currentOrderBaseSizeDoubleCurrent outstanding order size in base currency. Populated only when orderCurrency is "base".
currentOrderQuoteSizeDoubleCurrent outstanding order size in quote currency. Populated only when orderCurrency is "quote".
remainingOrderBaseSizeDoubleRemaining unfilled size in base currency. Populated only when orderCurrency is "base".
remainingOrderQuoteSizeDoubleRemaining unfilled size in quote currency. Populated only when orderCurrency is "quote".
totalFilledBaseSizeDoubleCumulative filled quantity in base currency.
avgFilledPriceDoubleVolume-weighted average fill price across all executions of this order.
orderDetailTypeStringOrder detail category classifying the order's purpose or subtype. β€” TWAP Β· PARTIAL_LIQUIDATION Β· FORCED_MARKET_BUY Β· FORCED_MARKET_SELL
orderDetailObject
triggerOrderBooleanTrue if this is a trigger (conditional) order.
triggeredBooleanTrue once the trigger condition has fired and the underlying order has been released.
triggerUseLastPriceBooleanTrue if the trigger evaluates against the last-traded price; false if it evaluates against the mark price. Only meaningful for trigger orders.
triggerPriceDoubleEffective trigger price. Only meaningful for trigger orders.
triggerOriginalPriceDoubleTrigger price originally submitted by the client. Only meaningful for trigger orders.
triggerOrderTypeIntegerNumeric trigger order-type code (stop-loss, take-profit, stop-loss-limit, or take-profit-limit). Only meaningful for trigger orders.
triggerStopPriceDoubleStop price for the trigger order. Only meaningful for trigger orders.
triggerTrailingStopDeviationDoubleTrailing stop deviation from the reference price. Only meaningful for trailing-stop trigger orders.
trailValueDoubleTrailing offset magnitude. Only meaningful for trailing-stop orders.
trailValueTypeStringInterpretation of trailValue (e.g. absolute amount or percentage). Only meaningful for trailing-stop orders. β€” DISTANCE Β· PERCENTAGE
pegPriceMinDoubleLower cap of the peg price band. Only meaningful for peg orders.
pegPriceMaxDoubleUpper cap of the peg price band. Only meaningful for peg orders.
pegPriceDeviationDoubleOffset applied to the reference price when pegging. Only meaningful for peg orders.
currentPegPriceDoubleCurrent effective peg price. Only meaningful for peg orders.
wrapperOrderBooleanTrue if the order is a wrapper for a group of related orders (e.g. bracket/OCO).
activationPriceDoubleActivation price at which the order becomes eligible for execution. Only present for orders that use an activation-price feature.
activationPriceTypeStringReference price type used when evaluating activationPrice. Only present for orders that use an activation-price feature. β€” INDEX_PRICE Β· LAST_PRICE Β· MARK_PRICE
example
GEThttps://api.btse.com/spot/api/v4/trade/order

Response (default)

{
"requestId": 5219582705252738000,
"orderId": "4eca2eb4-e6ad-4355-ae12-5ce757b105b3",
"clOrderId": null,
"symbol": "BTC-USD",
"quote": "USD",
"orderState": "ORDER_INSERTED",
"orderType": 76,
"orderSide": "BUY",
"orderPrice": 60413.8,
"orderValue": 0.604138,
"timestamp": 1784891308061,
"timeInForce": "GTC",
"orderCurrency": "base",
"originalOrderBaseSize": 0.00001,
"originalOrderQuoteSize": null,
"currentOrderBaseSize": 0.00001,
"currentOrderQuoteSize": null,
"remainingOrderBaseSize": 0.00001,
"remainingOrderQuoteSize": null,
"totalFilledBaseSize": 0,
"avgFilledPrice": 0,
"orderDetailType": null,
"orderDetail": null,
"triggerOrder": false,
"triggered": false,
"triggerUseLastPrice": false,
"triggerPrice": 0,
"triggerOriginalPrice": 0,
"triggerOrderType": 0,
"triggerStopPrice": 0,
"triggerTrailingStopDeviation": 0,
"trailValue": 0,
"trailValueType": "DISTANCE",
"pegPriceMin": 0,
"pegPriceMax": 0,
"pegPriceDeviation": 0,
"currentPegPrice": 60413.8,
"wrapperOrder": false,
"activationPrice": null,
"activationPriceType": null
}