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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
//! # CCXT Rust
//!
//! CCXT Rust is a professional-grade trading toolkit that brings the CCXT
//! unified exchange interface to native Rust projects. It wraps REST and
//! WebSocket APIs for major cryptocurrency exchanges under a single, strongly
//! typed abstraction.
//!
//! ## Features
//!
//! - **Async first**: Powered by `tokio` with ergonomic async/await APIs for every call
//! - **Unified types**: Shared `Exchange` trait and strongly typed market/order models
//! - **Performance oriented**: Zero-cost abstractions with `rust_decimal` for precise math
//! - **Live data**: WebSocket clients with automatic reconnection and streamed order books
//! - **Extensible**: Builder patterns and configuration hooks for custom environments
//!
//! ## Installation
//!
//! ```toml
//! [dependencies]
//! ccxt-rust = { version = "0.1", features = ["full"] }
//! ```
//!
//! Alternatively depend on the workspace members directly when developing inside the repo.
//!
//! ## Quick Start
//!
//! ```rust,no_run
//! use ccxt_exchanges::binance::Binance;
//! use ccxt_rust::prelude::*;
//!
//! #[tokio::main]
//! async fn main() -> Result<()> {
//! // Prefer testnet when experimenting to avoid hitting live balances.
//! let exchange = Binance::builder()
//! .sandbox(true)
//! .build()?;
//!
//! if exchange.capabilities().fetch_ticker() {
//! let ticker = exchange.fetch_ticker("BTC/USDT", ()).await?;
//! println!("Last price: {:?}", ticker.last);
//! }
//!
//! Ok(())
//! }
//! ```
//!
//! ## Further Reading
//!
//! See the repository README and the `examples/` folder for advanced scenarios
//! covering authenticated calls, streaming data, and multi-exchange orchestration.
// Re-export core types and traits
pub use ;
// Re-export exchange implementations
pub use Exchange;
pub use *;
// Test configuration module (only available in test builds)
/// Library version
pub const VERSION: &str = env!;
/// Prelude module for convenient imports