For the complete documentation index, see llms.txt. This page is also available as Markdown.

BitMEX

BitMEX historical market data details - available data, coverage and data collection specifics

BitMEX historical data for all its instruments is available since 2019-03-30.

See BitMEX historical data coverage: available symbols, channels, date ranges and incidents

Downloadable CSV files

Historical CSV datasets for the first day of each month are available to download without API key. See downloadable CSV files documentation.

data type
symbol
date

incremental_book_L2

XBTUSD

2019-07-01

trades

XBTUSD

2019-07-01

derivative_ticker

XBTUSD

2019-07-01

API Access and data format

Historical data format is the same as provided by real-time BitMEX WebSocket API with addition of local timestamps. If you'd like to work with normalized data format instead (same format for each exchange) see downloadable CSV files or official client libs that can perform data normalization client-side.

Tardis-machine is a locally runnable server that exposes API allowing efficiently requesting historical market data for whole time periods in contrast to HTTP API that provides data only in minute by minute slices.

See tardis-machine docs.

Captured real-time channels

See BitMEX WebSocket API docs providing documentation for each captured channel's format

Click any channel below to see HTTP API response with historical data recorded for it.

  • trade Public trade executions stream

  • orderBookL2 Order book snapshots and deltas by price level

  • quote Best bid and ask quote updates

  • liquidation Liquidation events stream

  • instrument Instrument state snapshots and deltas with bidPrice/askPrice/midPrice on 5s timer. partial messages returned via HTTP API may contain data for all BitMEX instruments and require filtering client-side if only selected symbols were requested

  • connected Connection heartbeat and system status events

  • announcement Exchange announcements stream

  • chat Public chat messages stream

  • publicNotifications Public notification messages stream

  • settlement Contract settlement events stream

  • funding Funding rate updates stream

  • insurance Daily insurance fund balance updates

  • orderBookL2_25 Order book snapshots and deltas with up to 25 levels

  • orderBook10 — available since 2021-02-20 Top 10 level order book snapshots, throttled to 50ms since 2023-09-19

  • quoteBin1m Quote bins at 1 minute interval

  • quoteBin5m Quote bins at 5 minute interval

  • quoteBin1h Quote bins at 1 hour interval

  • quoteBin1d Quote bins at 1 day interval

  • tradeBin1m Trade bins at 1 minute interval

  • tradeBin5m Trade bins at 5 minute interval

  • tradeBin1h Trade bins at 1 hour interval

  • tradeBin1d Trade bins at 1 day interval

Market data collection details

Market data collection infrastructure for BitMEX is located in GCP asia-northeast1 region (Tokyo, Japan). Before 2025-08-23 it was located in GCP europe-west2 region (London, UK).

Real-time market data is captured via single WebSocket connection to wss://direct.bitmex.com:443/realtimePublic.

BitMEX servers are located in AWS ap-northeast-1 region (Tokyo, Japan).

Last updated

Was this helpful?