Add L1BOOK support for BYBIT #1085
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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_BOOKcallback connects to the level 200 orderbook data stream andTICKERcallback connects to the ticker data stream.L1_BOOKas a websocket channel with unique channel in Bybit._top_of_bookfunction incryptofeed/exchanges/bybit.pyto process new websocket message for level one data.L1Bookobject andL1_BOOKsample testing data for level one data from Bybit.