Query Order Detail

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Rate Limit: 1200 requests per 60 seconds

Permission: RapidX API key with read-only permission is sufficient. No trading / write permission is required.

Retrieves the detailed information and current status of a specific order. This includes execution details, order parameters, fee information, and algorithmic order settings (Take-Profit/Stop-Loss).

Request

FieldTypeMandatoryDescription
orderIdStringNUnique identifier of the order assigned by the system.
clientOrderIdStringNCustomer-defined order ID, consists of letters (a-z) and numbers (0-9).

At least one of the following parameters (orderId or clientOrderId) must be provided to identify the order.

Response

FieldTypeDescription
portfolioIdStringUnique identifier for the portfolio.
portfolioNameStringName of the portfolio (if applicable).
orderIdStringUnique identifier for the order.
clientOrderIdStringUser-defined order ID.
orderStateStringSee ENUM Definitions for supported values.
symStringInternal unique identifier for the trading pair.
sideStringOrder side: BUY or SELL.
exchangeOrderTypeStringOrder type defined by the exchange (e.g., LIMIT, MARKET).
exchangeTypeStringThe exchange name (e.g., BINANCE, OKX).
businessTypeStringType of market (e.g., SPOT, MARGIN, PERP).
orderTypeStringInternal order type assigned by the system. DMA for standard direct-market-access orders. Also see ENUM Definitions for supported values.
orderQtyStringOrder quantity. Note: Units are in contracts for OKX and in coins (base currency) for Binance.
quoteOrderQtyStringTotal quantity in quote currency (if applicable).
limitPriceStringOrder limit price.
timeInForceStringTime in force policy (e.g., GTC, IOC, FOK).
executedQtyStringTotal executed quantity. For spot orders, this is the filled amount of the base asset. For derivatives, on OKX this is the number of contracts, and on Binance USDT-margined contracts it is effectively the base asset quantity (1 contract = 1 unit of the base asset).
executedAmountStringTotal executed quote amount.
executedAvgPriceStringAverage price of executed fills.
lastExecutedQtyStringQuantity of the most recent execution.
lastExecutedPriceStringPrice of the most recent execution.
lastExecutedAmountStringValue of the most recent execution.
feeStringCumulative trading fee for this order. Positive = fee charged (taker). "0" when the order earned a maker rebate instead (see rebate field).
feeCoinStringCurrency of the trading fee. Empty string if no fee was charged.
rebateStringCumulative maker rebate received. "0" for taker orders. For OKX spot: BUY orders return quote currency, SELL orders return base currency. For Binance spot: returns quote currency. For perpetuals: returns USDT.
rebateCoinStringCurrency of the rebate. Empty string if no rebate was received.
reduceOnlyBooleanWhether the order is reduce-only: true or false.
leverageIntegerLeverage used for the order.
borrowAmountStringAmount borrowed for margin/leverage.
borrowAssetStringAsset borrowed for the order.
positionSideStringPosition side (e.g., LONG, SHORT, NONE).
algoOrderIdStringID of the parent algorithmic order (if applicable).
tpTriggerPriceStringTrigger price for Take-Profit.
tpTriggerTypeStringTake-profit trigger price type: LAST_PRICE (Default), MARK_PRICE.
tpPriceStringExecution price for Take-Profit. If the price is 0, take-profit will be executed at the market price.
slTriggerPriceStringTrigger price for Stop-Loss.
slTriggerTypeStringStop-loss trigger price type: LAST_PRICE (Default), MARK_PRICE.
slPriceStringExecution price for Stop-Loss. If the price is 0, stop-loss will be executed at the market price.
reasonStringFailure reason message, if the order is rejected or cancelled by the system.
actionStringCurrent in-flight action on the order, if any. AMEND_PENDING — amendment submitted, awaiting confirmation. AMEND_COMPLETED — amendment confirmed. AMEND_FAILED — amendment rejected. CANCEL_PENDING — cancel submitted, awaiting confirmation. CANCEL_COMPLETE — cancellation confirmed. CANCEL_FAILED — cancellation rejected. Empty string when no action is in progress.
actionMsgStringAdditional message associated with the current action, if any.
cancelTypeStringReason the order was cancelled. Possible values: USER, EXPIRE, REDUCE_ONLY, LIQUIDATING, SYSTEM, SYM_DELIST. Empty string if the order has not been cancelled.
amendTypeStringReason the order was amended. Possible values: USER, REDUCE_ONLY. Empty string if the order has not been amended.
createAtStringOrder creation timestamp (millisecond).
updateAtStringLast update timestamp (millisecond).

Example Request

GET /api/v1/trading/order?orderId=2106591138643265

Example Response

{
  "code": 200000,
  "message": "Success",
  "data": {
    "portfolioId": "1732260294043000",
    "portfolioName": "Main Portfolio",
    "orderId": "2106591138643265",
    "clientOrderId": "myorder001",
    "orderState": "FILLED",
    "sym": "BINANCE_SPOT_ETH_USDT",
    "side": "SELL",
    "exchangeOrderType": "LIMIT",
    "exchangeType": "BINANCE",
    "orderType": "DMA",
    "businessType": "SPOT",
    "orderQty": "0.5",
    "quoteOrderQty": "",
    "limitPrice": "3200",
    "timeInForce": "GTC",
    "executedQty": "0.5",
    "executedAmount": "1600",
    "executedAvgPrice": "3200",
    "lastExecutedQty": "0.5",
    "lastExecutedPrice": "3200",
    "lastExecutedAmount": "1600",
    "fee": "1.6",
    "feeCoin": "USDT",
    "rebate": "0",
    "rebateCoin": "",
    "reduceOnly": false,
    "leverage": 1,
    "borrowAmount": "0",
    "borrowAsset": "",
    "positionSide": "NONE",
    "algoOrderId": "",
    "tpTriggerPrice": "",
    "tpTriggerType": "LAST_PRICE",
    "tpPrice": "0",
    "slTriggerPrice": "",
    "slTriggerType": "LAST_PRICE",
    "slPrice": "0",
    "reason": "",
    "action": "",
    "actionMsg": "",
    "cancelType": "",
    "amendType": "",
    "createAt": "1744466400000",
    "updateAt": "1744466410000"
  }
}
Query Params
string
string
Response

Language
LoadingLoading…
Response
Choose an example:
application/json