1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! WebSocket module for Bybit V5 real-time data streams.
//!
//! Provides connection management, authentication, and typed data
//! structures for all Bybit WebSocket channels.
//!
//! # Quick Start
//!
//! ```ignore
//! use bybit_rust_api::ws::{WsClient, topics};
//! use futures_util::StreamExt;
//!
//! #[tokio::main]
//! async fn main() -> anyhow::Result<()> {
//! let client = WsClient::connect(
//! "wss://stream.bybit.com/v5/public/linear"
//! ).await?;
//!
//! client.subscribe(vec![
//! topics::orderbook(1, "BTCUSDT"),
//! topics::trade("BTCUSDT"),
//! topics::kline("1", "BTCUSDT"),
//! ]).await?;
//!
//! while let Some(msg) = client.next().await {
//! println!("Topic: {:?}", msg.topic());
//! }
//! Ok(())
//! }
//! ```
// Re-export key types
pub use generate_auth_params;
pub use WsClient;
pub use ;