docs.rs failed to build czsc-utils-1.0.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
czsc-utils
💡 大多数用户应优先使用 facade crate
czsc:cargo add czsc一行拿到全部公共 API,本 crate 暴露的BarGenerator/is_trading_time/freq_data已在 facade 中 re-export。仅当你只用 K 线合成或交易日历工具、不需要其它 czsc 功能时才单独依赖本 crate。
缠论分析的 K 线合成与交易日历工具。
提供:
BarGenerator—— 多周期 K 线合成器freq_data—— 频率周期与对齐时间计算is_trading_time—— 国内 A 股 / 期货市场交易时段判断
用法
[]
= "1.0"
use is_trading_time;
use NaiveDateTime;
let dt: NaiveDateTime = "2024-01-02 10:30:00".parse.unwrap;
assert!;
特性
python:启用 PyO3 binding。