Closed pavs94 closed 3 months ago
Hi, I'm getting same errors, Cryptofeed Version 2.4.0, on ubuntu: fh.add_feed(Bybit(symbols=['BTC-USDT-PERP'], channels=[FUNDING, OPEN_INTEREST], callbacks={OPEN_INTEREST: oi, FUNDING: funding}))
output: 2024-03-07 16:26:43,689 : ERROR : BYBIT.ws.1: Error from exchange {'success': False, 'ret_msg': 'error:handler not found,topic:instrument_info.100ms.BTCUSDT', 'conn_id': '26ffa4fb-e6aa-48fb-94b3-91f415ec765c', 'req_id': '', 'op': 'subscribe'}
How is possible to solve in the code? Really appreciate, Thanks Sam
Describe the bug When subscribing to BTCUSDT Perpetual Futures, the subscription fails as the websocket connection url is different on bybit
To Reproduce Steps to reproduce the behavior:
from cryptofeed import FeedHandler from cryptofeed.backends.aggregate import Throttle from cryptofeed.defines import TRADES from cryptofeed.exchanges import Bybit
async def trade(t, receipt_timestamp): print(f"Book received at {t} ts: {receipt_timestamp}")
def main(): f = FeedHandler() f.add_feed(Bybit(symbols=['BTC-USDT-PERP'], channels=[TRADES], callbacks={TRADES: trade}))
if name == 'main': main()