Skip to main content

ccxt_base/
lib.rs

1// CCXT Rust – ccxt-base library root
2//
3// Re-exports the ccxt-common engine runtime, and houses the transpiled
4// REST and prediction exchange Cores (exchanges/, prediction/).
5
6#![allow(non_snake_case, dead_code, unused_variables, unused_imports)]
7#![allow(clippy::style, clippy::complexity, clippy::perf)]
8#![allow(async_fn_in_trait)]
9
10// Re-export all ccxt-common modules and symbols for seamless backward compatibility
11pub use ccxt_common::*;
12
13pub use ccxt_common::{
14    error,
15    exchange,
16    exchange_errors,
17    exchange_generated,
18    exchange_stubs,
19    order_router,
20    order_router_selftest,
21    params,
22    precise,
23    prediction_exchange,
24    prediction_exchange_generated,
25    pro,
26    runtime,
27    types,
28    value,
29};
30
31#[cfg(feature = "engine")]
32pub mod prediction;
33
34#[cfg(feature = "engine")]
35pub mod exchanges;
36
37#[cfg(not(feature = "engine"))]
38pub mod exchanges {
39    // empty until transpiled-base feature is enabled
40}
41
42#[cfg(all(test, feature = "engine", feature = "binance"))]
43mod exchange_tests;