Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 1.28 KB

README.md

File metadata and controls

23 lines (13 loc) · 1.28 KB

ByBit Provider

Overview

The ByBit provider is used to fetch the ticker price from the ByBit websocket API.

Connections may be disconnected if a heartbeat ping is not sent to the server every 20 seconds to maintain the connection.

ByBit provides public and private channels.

  • Public channels -- No authentication is required, include tickers topic, K-Line topic, limit price topic, order book topic, and mark price topic etc.
  • Private channels -- including account topic, order topic, and position topic, etc. -- require log in.

Users can choose to subscribe to one or more topic, and the total length of multiple topics cannot exceed 21,000 characters. This provider is implemented assuming that the user is only subscribing to public topics.

The exact topic that is used to subscribe to the ticker price is the Tickers. This pushes data in real time if there are any price updates.

To retrieve all supported spot markets, please run the following command:

curl "https://api.bybit.com/v5/market/instruments-info"