You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from datetime import datetime as dt
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}))
f.run()
if __name__ == '__main__':
main()
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:
https://www.bybit.com/trade/usdt/BTCUSDT
Expected behavior
https://bybit-exchange.github.io/docs/v5/ws/connect
Operating System:
Cryptofeed Version
The text was updated successfully, but these errors were encountered: