|
'usdt': 'wss://fx-ws-testnet.gateio.ws/v4/ws/usdt', |
The Gate Testnet URL for USDT has changed, at least for swap. The current gate.py code is referencing "wss://fx-ws-testnet.gateio.ws/v4/ws/usdt" but it has moved to "wss://ws-testnet.gate.com/v4/ws/futures/usdt".
The others should be checked (future, option for USDT and BTC).
https://www.gate.com/docs/developers/futures/ws/en/#usdt-contract
Running without this change will ultimately give you an exception if you are only watching futures. This is due to get_market_type_by_url() called from handle_positions() not parsing the new URL correctly.
ccxt/python/ccxt/pro/gate.py
Line 96 in 3f8b343
The Gate Testnet URL for USDT has changed, at least for swap. The current gate.py code is referencing "wss://fx-ws-testnet.gateio.ws/v4/ws/usdt" but it has moved to "wss://ws-testnet.gate.com/v4/ws/futures/usdt".
The others should be checked (future, option for USDT and BTC).
https://www.gate.com/docs/developers/futures/ws/en/#usdt-contract
Running without this change will ultimately give you an exception if you are only watching futures. This is due to get_market_type_by_url() called from handle_positions() not parsing the new URL correctly.