-
-
Notifications
You must be signed in to change notification settings - Fork 748
Description
Python 3.11.5
Cryptofeed 2.4.1
When using FeedHandler to subscribe to Bybit TICKER data, the script successfully validates symbols via REST and adds the feed(s).
However, after FeedHandler.run() is called, no WebSocket connection attempt is logged (even with DEBUG enabled for cryptofeed.connection and websockets). The registered callback is never triggered.
Crucially, an identically structured script works correctly for Binance, logging WebSocket connections and receiving data as expected. This suggests the issue is specific to the Bybit integration within Cryptofeed.
Expected behavior (for Bybit):
After the Starting feed handler... log, DEBUG logs from cryptofeed.connection and websockets should show connection attempts to Bybit's WebSocket endpoints (wss://stream.bybit.com/...) and subsequent activity.
Actual Behavior (for Bybit):
No WebSocket connection or subscription logs appear after f.run(). Only unrelated logs (like the periodic JSON writer finding 0 symbols) are seen.
cryptofeed Bybit script: https://pastebin.com/tj5qKmye
cryptofeed binance script: https://pastebin.com/6EeAa86k
testtickers.txt : https://pastebin.com/JrHS16uv