Batch Historical

Provides batched historical OHLCV (Open, High, Low, Close, Volume) data for multiple futures instruments within a specified date range, including timestamps, price levels, and trading volumes across exchanges.

๐Ÿ“˜

Time Range & Data Availability Limit

The maximum time range (difference between startDate and endDate) is:

  • 62 days of daily, hourly or minutely data
  • This endpoint only stores the most recent 62 days of data.
  • Queries with a startDate older than 62 days from the current date will result in a 410 error.

In order to get more than the maximum allowed, you can use the Historical endpoint found here .

๐Ÿšง

Not specifying startDate and endDate

If you omit startDate and endDate, the API will return the most recent 62 days of daily data (not data older than 62 days from the current date).


๐Ÿšจ 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 OHLCV data is recorded (e.g., BTCUSD_PERP).
payload.data[].exchangestringThe name of the exchange where the OHLCV data applies (e.g., binance).
payload.data[].exchangeTimestampintegerThe timestamp from the exchange in milliseconds since epoch.
payload.data[].openfloatThe opening price of the instrument for the specified timestamp.
payload.data[].highfloatThe highest price of the instrument for the specified timestamp.
payload.data[].lowfloatThe lowest price of the instrument for the specified timestamp.
payload.data[].closefloatThe closing price of the instrument for the specified timestamp.
payload.data[].volumefloatThe trading volume for the instrument during the specified timestamp.
Language
Credentials
Header
Click Try It! to start a request and see the response here!