Query Order Detail

Description

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).

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

Rate Limit

1200 requests per 60 seconds

Permission

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

Response

FieldTypeDescription
portfolioIdStringUnique identifier for the portfolio.
portfolioNameStringName of the portfolio (if applicable).
orderIdStringUnique identifier for the order.
clientOrderIdStringUser-defined order ID.
orderStateStringPlease see 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).
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 quantity executed.
executedAmountStringTotal value executed.
executedAvgPriceStringAverage price of executed fills.
reasonStringReason for rejection or failure.
actionStringAMEND_PENDING
AMEND_COMPLETED
AMEND_FAILED
CANCEL_PENDING
CANCEL_COMPLETE
CANCEL_FAILED
actionMsgStringMessage associated with action.
cancelTypeStringSource of cancellation:
USER
EXPIRE
REDUCE_ONLY
LIQUIDATING
SYSTEM
SYM_DELIST
amendTypeStringType of order amendment (if applicable):USER, REDUCE_ONLY
createAtStringOrder creation timestamp (millisecond).
updateAtStringLast update timestamp (millisecond).
feeStringTotal transaction fees paid.
feeCoinStringCurrency used for fee payment.
orderTypeStringPlease see ENUM Definitions for supported values.
reduceOnlyBooleanWhether the order is reduce-only: True or False
leverageIntegerLeverage used for the order.
lastExecutedQtyStringQuantity of the most recent execution.
lastExecutedPriceStringPrice of the most recent execution.
lastExecutedAmountStringValue of the most recent execution.
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).
rebateStringTotal rebate amount earned.
rebateCoinStringCurrency used for the rebate.
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.
Language
Credentials
OAuth2