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
//! # Bitstamp V2 Connector
//!
//! Exchange connector for Bitstamp V2 API.
//!
//! ## Architecture
//!
//! - `endpoints` - URL structures and endpoint definitions
//! - `auth` - HMAC-SHA256 V2 signature implementation
//! - `parser` - Response parsing to internal types
//! - `connector` - Trait implementations (MarketData, Trading, Account)
//! - `websocket` - WebSocket connector implementation
//!
//! ## Usage
//!
//! ```ignore
//! use connectors_v5::exchanges::bitstamp::BitstampConnector;
//! use connectors_v5::core::types::{Symbol, AccountType};
//! use connectors_v5::core::traits::MarketData;
//!
//! // Public API
//! let connector = BitstampConnector::public().await?;
//! let ticker = connector.get_ticker(&Symbol::new("BTC", "USD"), AccountType::Spot).await?;
//!
//! // Private API
//! let credentials = Credentials::new("api_key", "api_secret");
//! let connector = BitstampConnector::new(Some(credentials)).await?;
//! let balance = connector.get_balance(AccountType::Spot).await?;
//! ```
pub
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;