Skip to content

Conversation

caped-doshi
Copy link

Faster updates for top of the book level updates from 100ms to 10ms on Bybit Exchange for futures.

On Bybit's official documentation for websockets, level 200 orderbook data and ticker data (for derivatives) has push frequency of 100ms. However, level 1 orderbook data has push frequency of 10 ms. Currently, L2_BOOK callback connects to the level 200 orderbook data stream and TICKER callback connects to the ticker data stream.

  • Added L1_BOOK as a websocket channel with unique channel in Bybit.
  • Created _top_of_book function in cryptofeed/exchanges/bybit.py to process new websocket message for level one data.
  • Generated unit tests for L1Book object and L1_BOOK sample testing data for level one data from Bybit.

@bmoscon
Copy link
Owner

bmoscon commented Jun 18, 2025

@caped-doshi thank you for this! I will review and test this out and then merge it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants