Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 1.04 KB

README.md

File metadata and controls

19 lines (11 loc) · 1.04 KB

OKX Provider

Overview

The Huobi provider is used to fetch the ticker price from the Huobi websocket API. All data of websocket Market APIs are compressed with GZIP and need to be unzipped.

The server will send a ping message and expect a pong sent back promptly. If a pong is not sent back after 2 pings, the connection will be disconnected.

Huobi provides public channels.

  • Public channels -- No authentication is required, include tickers channel, K-Line channel, limit price channel, order book channel, and mark price channel etc.

The exact channel that is used to subscribe to the ticker price is the Market Tickers Topic. This pushes data every 100ms.

To retrieve all supported pais, please run the following command

 curl "https://api.huobi.pro/market/tickers"