Attention - Important Notice

In accordance with Section 1.4 of our Terms of Service:
  • Persons that are located in or a resident of the United States of America or Québec (Canada) are prohibited from holding positions or entering into contracts at BitMEX.
  • Persons that are located in or a resident of Cuba, Crimea and Sevastopol, Iran, Syria, North Korea and Sudan, or any other jurisdiction where the services offered by BitMEX are restricted, are prohibited from holding positions or entering into contracts at BitMEX.
  • BitMEX reserves the right to immediately close the accounts and to liquidate the open positions of persons determined to have breached our Terms of Service.
AllXBTUSD3699.5+6.00%XBTH193600.0+5.08%XBTZ183672.5+5.68%XBTM193551.5+4.15%XBT7D_D950.00072-48.57%XBT7D_U1050.00658+7.87%ADAZ180.00000974+5.18%ADAH190.00000976+5.97%BCHZ180.0308+21.74%BCHH190.0305+21.51%EOSZ180.0007081+4.55%EOSH190.0006961+4.14%ETHUSD103.65+11.09%ETHZ180.02805+4.47%ETHH190.02800+4.79%LTCZ180.00831+1.84%LTCH190.00832+3.35%TRXZ180.00000439+9.75%TRXH190.00000437+7.64%XRPZ180.00009786+4.27%XRPH190.00009764+4.44%.BXBT3707.04+6.07%.BETH103.69+11.11%.BVOL24H3.82-9.91%Funding: 02:18:24 @ -0.0747%Time: 1:41:35 AM
API Overview

BitMEX offers a fully featured REST API and a powerful streaming WebSocket API. All market and user data is available and updates in real-time.

The BitMEX APIs are open and complete. Every function used by the BitMEX website is exposed via the API, allowing developers full control to build any kind of application on top of BitMEX.

The completeness of BitMEX’s API is best-in-class and unique in the trading space.

API Resources

API Announcements
API Keys
Samples
Historical Data

Daily historical extracts of commonly queried public BitMEX API data are available on public.bitmex.com (Testnet data is also available). These should be used in favour of pagination via the REST API.

BitcoinCharts API

BitMEX implements the full BitcoinCharts API starting at https://www.bitmex.com/api/bitcoincharts. The BitcoinCharts API is a simple way to access trade and orderbook data in a format that is compatible with other exchanges.

UDF API

BitMEX also implements the UDF API popularized by TradingView. The base URL is https://www.bitmex.com/api/udf and you can view an overview here.