Skip to main content

Gate.io Futures

Gate.io Futures Market Data Connector

Gate.io Futures Data Connector based on WebSocket/REST.

Configuration

Data Connector Parameters

ParameterDefault ValueDescription
WebSocket URLwss://fx-ws.gateio.ws/v4/ws/usdtWebSocket root URL.

To start the connector in "Perpetual Futures" mode with USDT contracts use the following URL:
wss://fx-ws.gateio.ws/v4/ws/usdt

To start the connector in "Perpetual Futures" mode with BTC contracts use the following URL:
wss://fx-ws.gateio.ws/v4/ws/btc

To start the connector in "Delivery Futures" mode with USDT contracts use the following URL:
wss://fx-ws.gateio.ws/v4/ws/delivery/usdt

To start the connector in "Delivery Futures" mode with BTC contracts use the following URL:
wss://fx-ws.gateio.ws/v4/ws/delivery/btc

By default the URL for "Perpetual Futures" mode with USDT contracts is chosen.
REST URLhttps://api.gateio.ws/api/v4/futures/usdt/REST root URL.

To start the connector in "Perpetual Futures" mode with USDT contracts use the following URL:
https://api.gateio.ws/api/v4/futures/usdt/

To start the connector in "Perpetual Futures" mode with BTC contracts use the following URL:
https://api.gateio.ws/api/v4/futures/btc/

To start the connector in "Delivery Futures" mode with USDT contracts use the following URL:
https://api.gateio.ws/api/v4/delivery/usdt/

To start the connector in "Delivery Futures" mode with BTC contracts use the following URL:
https://api.gateio.ws/api/v4/delivery/btc/

By default the URL for "Perpetual Futures" mode with USDT contracts is chosen.
Read Timeout15000Read timeout in milliseconds.
Reconnect Timeout15000Reconnect timeout in milliseconds.
Exchange NameGATEIOExchange name for this session.
Output Book Size20Size of the output book.
Snapshot Interval10SThis property sets an interval in seconds between periodical Level2 snapshots which sent to Aggregator.

Snapshots will be generated as soon as this threshold is exceeded AND the next increment message arrives. Conversely, snapshots are NOT generated every period if no data is coming in.

Default value is 10 seconds.

Symbology

Supported symbol notations:

Symbol NotationExamples
CRYPTO_PAIR (upper case)BTC_USDT
ETH_USDT

Full symbol list can be obtained using REST API for Perpetual/Delivery Futures:

https://api.gateio.ws/api/v4/futures/usdt/contracts

https://api.gateio.ws/api/v4/delivery/usdt/contracts