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.
Additional Resources
Additional API resources and FAQ’s can be found here.
BitcoinCharts API
BitMEX implements the full BitcoinCharts API starting at https://testnet.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://testnet.bitmex.com/api/udf and you can view an overview here.