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
//! # Dhan Exchange Connector
//!
//! Full implementation for Dhan Indian stock broker.
//!
//! ## Structure
//!
//! - `endpoints` - URLs and endpoint enum
//! - `auth` - Request signing (JWT token-based)
//! - `parser` - JSON response parsing
//! - `connector` - DhanConnector + trait implementations
//! - `websocket` - WebSocket connection (binary format)
//!
//! ## Usage
//!
//! ```ignore
//! use connectors_v5::stocks::india::dhan::DhanConnector;
//!
//! let connector = DhanConnector::new(credentials, false).await?;
//!
//! // Core methods (from traits)
//! let price = connector.get_price(symbol, AccountType::Spot).await?;
//! let order = connector.market_order(symbol, side, qty, AccountType::Spot).await?;
//!
//! // Extended methods (Dhan-specific)
//! let holdings = connector.get_holdings().await?;
//! let positions = connector.get_positions_detail().await?;
//! ```
pub use ;
pub use DhanAuth;
pub use DhanParser;
pub use DhanConnector;
pub use DhanWebSocket;