nautechsystems / nautilus_trader

A high-performance algorithmic trading platform and event-driven backtester
https://nautilustrader.io
GNU Lesser General Public License v3.0
2.02k stars 460 forks source link

Improve Bybit handling for top-of-book quotes and deltas #1672

Closed davidsblom closed 4 months ago

davidsblom commented 4 months ago

Pull Request

The Bybit venue pushes Level 1 depth data every 10ms, versus deltas at depth 50 every 20ms. This PR allows to subscribe both to quote ticks and delta ticks to receive quote ticks as soon as possible but still keep an up to date order book with depth 50 or 200 or 500.

Type of change

Delete options that are not relevant.

How has this change been tested?

Locally subscribing to quote ticks and delta ticks at level 50.