API Reference

Query Archived Transactions (Pageable)

Rate Limit: 5 requests per 10 seconds

This endpoint returns historical execution records for the period between 7 and 90 days ago.

It is intended for backfilling, reconciliation, and reporting use cases that require access to older trades beyond the recent 7-day window.

Request

NameTypeMandatoryDescription
orderIdStringNOrder ID. If provided, the query will return executions related to this order.
symStringNTrading pair unique identifier. For example: BINANCE_SPOT_BTC_USDT, BINANCE_PERP_BTC_USDT.
exchangeStringNExchange type, such as BINANCE, OKX, EDX.
businessTypeStringNBusiness type of the trade, for example SPOT, PERP, MARGIN.
beginStringNStart time of the query window. If not specified, the default is to query data from up to 7 days ago.
endStringNEnd time of the query window. If not specified, the current time is used.
pageStringNCurrent page number (starting from 1).
pageSizeStringNPage size. Default is 1000, maximum 1000.

Response

FieldTypeDescription
transactionIdStringUnique identifier of this trade execution record. One order may generate multiple executions.
portfolioIdStringIdentifier of the portfolio or sub-account to which this trade belongs.
orderIdStringSystem-generated order ID associated with this execution.
exchangeTypeStringVenue where the trade was executed (e.g. BINANCE, OKX, EDX).
businessTypeStringBusiness type of the trade, such as SPOT, PERP, MARGIN.
symStringInternal unique identifier of the trading pair or instrument.
sideStringTrade side, such as BUY or SELL (or other venue-specific side values).
quantityStringExecuted quantity for this trade.
priceStringExecuted price for this trade.
tradingFeeStringTrading fee charged for this execution.
tradingFeeCoinStringCurrency in which the trading fee is charged (e.g. USDT, BTC).
rpnlStringRealized PnL generated by this execution.
clientOrderIdStringClient-defined order ID passed when placing the order (used for idempotency and client-side tracking).
algoOrderIdStringID of the parent algo order if this execution was generated by an algorithmic strategy; 0 or empty if not applicable.
createAtStringTimestamp when this trade execution was created, in milliseconds since Unix epoch.
execTypeStringLiquidity role of this execution: "MAKER" or "TAKER".
Language
Credentials
OAuth2