Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 1.47 KB

README.md

File metadata and controls

25 lines (15 loc) · 1.47 KB

Gate.io Provider

Overview

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

Gate.io provides public and authenticated channels.

The Gate.io provider uses protocol-level ping-pong, so no handlers need to be specifically implemented.

Application level ping messages can be sent which should be responded to with pong messages.

  • 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. 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 every 1000ms.

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

curl -X GET https://api.gateio.ws/api/v4/spot/currency_pairs \
  -H 'Accept: application/json'