API Documentation


Example Queries

Bitcoin last solved block including the most recent transactions
This example shows how to return the most recent block for Bitcoin and limit the transactions to the first 10 transactions
Try me!
Bitcoin on-chain summary
This example shows how to return the on-chain summary for Bitcoin
Try me!
Current order book for multiple markets
This example shows how you can return the current order book for many different markets in the same result. This shows the current order books for all BTC/USDT markets.
Try me!
Historical order book depth
Historical orderbook depth for BitMEX BTC contracts are displayed in time series results. The values are calculated from an order book snapshot taken at the start of the time period. Values are returned as price and size tuples. The price is calculated at a percentage above the best ask price or below the best bid price. The incrrements for values are 0%, 0.1%, 0.2%, 0.3%, 0.4%, 0.5%, 0.75%, 1%, 2%, 3%, 4%, 5%, 7.5%, 10%, 15%, and 20%. The size is the cumulative orders on the order book to reach the price leve.
Try me!
Minute close price for all markets
Find the price for any minute across any market
Try me!
OHLCV for multiple markets
This example shows how you can return OHLVC data for many different markets in the same result. This shows a 30-days price history for 1-day OHLCV candles for all markets that are BTC/USD, BTC/USDT, or BTC/USDC.
Try me!
Recent trades for multiple markets
This example shows how you can return recent trades for many different markets in the same result. This shows the recent trades for all BTC/USD, BTC/USDT, and BTC/USDC markets on Binance, Bitfinex, and Coinbase Pro exchanges.
Try me!
Tickers for multiple markets
This example shows how you can return ticker data for many different markets in the same result. This shows the tickers for all BTC/USD, BTC/USDT, and BTC/USDC markets.
Try me!
Time series with market price and Bitcoin (BTC) on-chain data
This example shows how you can join market price data with onchain metrics. This shows the market price for BTC/USD on Gemini and Coinbase Pro as well as on-chain transaction volume and fees for Bitcoin
Try me!