roq-gate-futures#
Important
This gateway needs sponsorship to complete certain features.
Links#
Purpose#
Maintain network connectivity with the Gate.io Futures exchange
Route exchange updates to connected clients
Route client requests to the relevant exchange accounts
Stream all messages to an event-log
Overview#
Spot |
|
Futures |
✓ |
Options |
Reference Data |
✓ |
Market Status |
|
Top of Book |
✓ |
Market by Price (L2) |
✓ |
Market by Order (L3) |
|
Trade Summary |
✓ |
Statistics |
✓ |
Create |
✓ |
Modify |
|
Cancel |
✓ |
Cancel All |
✓ |
Auto Cancellation |
Positions |
|
Funds |
✓ |
Data center located in: TBD
Conda#
$ mamba install \
--channel https://roq-trading.com/conda/stable \
roq-gate-futures
$ cp $CONDA_PREFIX/share/roq-gate-futures/config.toml $CONFIG_FILE_PATH
# Then modify $CONFIG_FILE_PATH to match your specific configuration
$ roq-gate-futures \
--name "gate-futures" \
--config_file "$CONFIG_FILE_PATH" \
--client_listen_address "$UNIX_SOCKET_PATH" \
--service_listen_address "$TCP_LISTEN_PORT" \
--flagfile "$FLAG_FILE"
Config#
Flags#
$ roq-gate-futures --help
Environments#
BTC#
# flagfile
--api=btc
--rest_uri=https://api.gateio.ws/api/v4
--ws_uri=wss://fx-ws.gateio.ws/v4/ws/btc
USDT#
# flagfile
--api=usdt
--rest_uri=https://api.gateio.ws/api/v4
--ws_uri=wss://fx-ws.gateio.ws/v4/ws/usdt
Market Data#
Event |
Stream |
Messages |
Comments |
---|---|---|---|
MarketData |
futures.book_ticker |
||
MarketData |
futures.order_book_update |
||
MarketData |
futures.trades |
||
MarketData |
futures.tickers |
Event |
Stream |
Messages |
Comments |
---|---|---|---|
Rest |
/futures/{api}/contracts |
||
Rest |
/futures/{api}/order_book |
||
Statistics#
Type |
Comments |
---|---|
|
(futures.tickers) |
|
(futures.tickers) |
|
(futures.tickers) |
|
(futures.tickers) |
Order Management#
Event |
Stream |
Messages |
Comments |
---|---|---|---|
Event |
Stream |
Messages |
Comments |
---|---|---|---|
Event |
Stream |
Messages |
Comments |
---|---|---|---|
Event |
Stream |
Messages |
Comments |
---|---|---|---|
Order Types#
TBD
Time in Force#
TBD
Position Effect#
TBD
Execution Instructions#
TBD
Account Management#
Event |
Stream |
Messages |
Comments |
---|---|---|---|
Event |
Stream |
Messages |
Comments |
---|---|---|---|
Streams#
Type |
Comments |
---|---|
REST |
Primary purpose
|
Type |
Comments |
---|---|
WebSocket |
Primary purpose
Each connection
|
Constraints#
Order book updates are throttled at 100ms (default) or 1000ms.
Order books appear to allow inverted prices.
This has been confirmed and documented with a request (snapshot) + a single update (which brackets the snapshot). Applying the update to the snapshot results in inverted prices.
Comments#
Order books can be subscribed to a depth of 5, 10 and 20, according to the documentation. However, a value of 100 also appear to be valid. Other values may result in a response saying “success’, yet updates do not appear to arrive.
Order/account management is completely missing (needs sponsorship).