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
//! czsc — facade crate, re-exports the full czsc Rust workspace under one name.
//!
//! 业务实现拆分在 [`czsc-core`] / [`czsc-utils`] / [`czsc-ta`] /
//! [`czsc-signals`] / [`czsc-trader`] 几个 crate 里;本 crate 只做 re-export,
//! 让终端用户写
//!
//! ```toml
//! [dependencies]
//! czsc = "1.0"
//! ```
//!
//! 即可拿到全部公共 API,无需逐个 add 子 crate。
//!
//! 命名空间约定:
//!
//! | 子模块 | 来源 |
//! |-------------------------|---------------------------------------|
//! | `czsc::analyze` | [`czsc_core::analyze`] |
//! | `czsc::objects::*` | [`czsc_core::objects`] 的所有数据类型 |
//! | `czsc::error_chain` | [`czsc_core::error_chain`] |
//! | `czsc::ta` | [`czsc_ta`] 的纯算子(`pure`) |
//! | `czsc::bar_generator` | [`czsc_utils::bar_generator`] |
//! | `czsc::freq_data` | [`czsc_utils::freq_data`] |
//! | `czsc::trading_time` | [`czsc_utils::trading_time`] |
//! | `czsc::signals` | [`czsc_signals`] |
//! | `czsc::trader` | [`czsc_trader`] 的全部对外公共面 |
//!
//! 顶层 re-export 的核心类型(最常用):[`CZSC`] / [`RawBar`] / [`NewBar`] /
//! [`Freq`] / [`FX`] / [`BI`] / [`ZS`] / [`Mark`] / [`Direction`] /
//! [`Operate`] / [`Event`] / [`Position`] / [`Market`] /
//! [`BarGenerator`] / [`is_trading_time`]。
// ── 子模块命名空间 ─────────────────────────────────────────────────────────
pub use analyze;
pub use error_chain;
pub use objects;
pub use bar_generator;
pub use freq_data;
pub use trading_time;
/// 技术分析算子(EMA / SMA / rolling_rank / ultimate_smoother / ...)。
///
/// 本模块就是 [`czsc_ta::pure`],只 re-export 不带 numpy 互操作的纯 Rust 接口。
/// 想用 numpy 互操作请直接依赖 [`czsc_ta`] 并启用 `rust-numpy` feature。
pub use czsc_signals as signals;
// ── 顶层 re-export:常用类型直接挂在 czsc::* ────────────────────────────────
pub use CZSC;
pub use ;
pub use BarGenerator;
pub use is_trading_time;
pub use CzscSignals;
pub use SignalConfig;