Historical

Provides historical trade data for futures instruments, including timestamps, trade prices, volumes, buy/sell side information, and trade identifiers across exchanges.

📘

Time Range Limit

The maximum time range (difference between startDate and endDate) is 731 days (2 years).

🚧

Not specifying startDate and endDate

If the startDate and endDate query parameters are not provided, the API will return the data from the previous 24 hours.


🚨 Important Notice for BitMEX Data 🚨

BitMEX’s volume field represents the number of contracts traded, not the volume in the base asset. To obtain the correct volume, users must adjust for contract size using underlyingToPositionMultiplier from our Reference endpoint.

For details on this calculation and how to retrieve the correct values, see our Changelog Update.

RESPONSE DATA
JSON Field/PathValue TypeDescription
payload.metadata.nextstringThe URL for the next page of data (nullable if there is no next page).
payload.metadata.api-versionstringThe version of the API used for this request.
payload.data[].instrumentstringThe instrument or trading pair for which trade data is recorded (e.g., BTCUSD_PERP).
payload.data[].exchangestringThe name of the exchange where the trade data applies (e.g., binance).
payload.data[].exchangeTimestampintegerThe timestamp from the exchange when the trade was executed, in milliseconds since epoch.
payload.data[].exchangeTimestampNanosecondsintegerThe nanoseconds part of the timestamp, representing sub-second precision.
payload.data[].isBuySidebooleanIndicates whether the trade was on the buy side (true) or sell side (false).
payload.data[].pricefloatThe price at which the trade was executed.
payload.data[].volumefloatThe volume of the trade.
payload.data[].tradeIdstringThe unique identifier for the trade.
payload.data[].quoteVolumefloatThe quote volume for the trade (nullable if not available).
payload.data[].sequencestringThe sequence number of the trade event (nullable if not available).
Language
Credentials
Header
Click Try It! to start a request and see the response here!