BitMEX has a REST and Websocket API.

Битмекс располагает API типов REST и Websocket.


REST API Documentation


Websocket API Documentation


Basic Information


An API key is only required for private data like orders, margin, positions. Everything else is available un-authenticated.


If you want ticker such as bidPrice, lastPrice, fairPrice etc then you can use the /instrument endpoint:

Основная информация

Ключ API необходим только для личной информации, такой как ордера, маржа, позиции. Все остальное доступно без авторизации.

Если вы хотите тикер по типу bidPrice, lastPrice, fairPrice и т.д., вы можете использовать команду /instrument.


https://www.bitmex.com/api/v1/instrument/active


If you want a live ticker then subscribe to the websocket:

Если вам необходим тикер в реальном времени, подпишитесь на вебсокет:


wscat -c "wss://www.bitmex.com/realtime?subscribe=instrument:XBTUSD"

connected (press CTRL+C to quit)

< {"info":"Welcome to the BitMEX Realtime API.","version":"1.2.0","timestamp":"2016-06-20T17:41:52.058Z","docs":"https://www.bitmex.com/app/wsAPI","heartbeatEnabled":false}

< {"success":true,"subscribe":"instrument:XBTUSD","request":{"op":"subscribe","args":"instrument:XBTUSD"}}

< {"table":"instrument","action":"update","data":[{"symbol":"XBTUSD","midPrice":739.365,"askPrice":739.89,"impactMidPrice":739.38285,"impactAskPrice":739.9241,"timestamp":"2016-06-20T17:41:45.000Z"}]}

< {"table":"instrument","action":"update","data":[{"symbol":"XBTUSD","impactMidPrice":739.402,"impactAskPrice":739.9624,"timestamp":"2016-06-20T17:41:45.000Z"}]}

< {"table":"instrument","action":"update","data":[{"symbol":"XBTUSD","midPrice":739.36,"askPrice":739.88,"impactMidPrice":739.3664,"impactAskPrice":739.8912,"timestamp":"2016-06-20T17:41:45.000Z"}]}