High-performance provider for Bybit V5 markets with WebSocket streaming
and REST API support. Supports all V5 categories: spot, linear, inverse, option.
Optimized for HFT applications with nanosecond precision.
Create a new Bybit provider with default configuration (Spot category)
This method provides backward compatibility for code expecting a parameterless constructor.
For specific categories, use new_with_category() or the category-specific constructors.
Subscribe to trade data stream for multiple symbols
Returns a channel receiver for trade messages
Uses SmallVec to avoid heap allocations for small numbers of symbols
Subscribe to orderbook depth data for multiple symbols
Returns a channel receiver for depth messages
Uses SmallVec to avoid heap allocations for small numbers of symbols
High-performance timestamp conversion method
Uses cached timestamp conversions when possible and provides optimized conversion
when timestamps are a known format. Read more
Convert ISO8601 timestamp String to nanoseconds with caching for frequent values
This method should be used for exchanges that provide timestamps as ISO8601 strings
such as Coinbase.
Get current time in nanoseconds from the provider’s clock
This method uses the shared clock to ensure consistent timekeeping
across all parts of the exchange provider.