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
46
47
48
49
50
51
52
53
54
//! # OANDA v20 Connector
//!
//! Full implementation of OANDA v20 REST API connector.
//!
//! ## Provider Type
//! Forex Broker (both market data AND trading capabilities)
//!
//! ## Features
//! - Bearer token authentication
//! - 120+ forex pairs, metals, commodities, indices
//! - Market data (pricing, candles, orderbook)
//! - Trading (market orders, limit orders, positions)
//! - Account management
//! - HTTP streaming (pricing and transactions)
//!
//! ## Symbol Format
//! - EUR/USD → EUR_USD
//! - GBP/JPY → GBP_JPY
//! - XAU/USD → XAU_USD (Gold)
//!
//! ## Usage
//!
//! ```ignore
//! use connectors_v5::forex::oanda::OandaConnector;
//! use connectors_v5::{Credentials, Symbol, AccountType};
//!
//! // Practice account
//! let credentials = Credentials::new("YOUR_BEARER_TOKEN", "");
//! let mut connector = OandaConnector::new(credentials, true).await?;
//!
//! // Get EUR/USD price
//! let symbol = Symbol::new("EUR", "USD");
//! let price = connector.get_price(symbol, AccountType::Spot).await?;
//!
//! // Place market order
//! let order = connector.market_order(
//! symbol,
//! OrderSide::Buy,
//! 10000.0, // 10,000 units
//! AccountType::Spot
//! ).await?;
//! ```
pub use ;
pub use OandaAuth;
pub use OandaParser;
pub use OandaConnector;
pub use ;