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
42
43
44
45
//! # OKX Exchange Connector
//!
//! Implementation of OKX API v5 following the V5 connector architecture.
//!
//! ## Modules
//! - `endpoints` - API endpoints and URL configuration
//! - `auth` - Request signing and authentication
//! - `parser` - Response parsing
//! - `connector` - Main connector implementing all traits
//! - `websocket` - WebSocket implementation
//!
//! ## Usage
//!
//! ```ignore
//! use connectors_v5::exchanges::okx::OkxConnector;
//! use connectors_v5::core::{Credentials, AccountType, Symbol};
//! use connectors_v5::core::traits::{MarketData, Trading};
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! // Create connector
//! let credentials = Credentials::new("api_key", "api_secret")
//! .with_passphrase("passphrase");
//! let okx = OkxConnector::new(Some(credentials), false).await?;
//!
//! // Get price
//! let symbol = Symbol::new("BTC", "USDT");
//! let price = okx.get_price(symbol, AccountType::Spot).await?;
//! println!("BTC-USDT: {}", price);
//!
//! Ok(())
//! }
//! ```
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;