czsc-utils 1.0.1

Utilities of the czsc framework (most users should depend on the `czsc` facade instead): BarGenerator, frequency calendar, trading-time helpers.
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.

czsc-utils

💡 大多数用户应优先使用 facade crate czsccargo 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 股 / 期货市场交易时段判断

用法

[dependencies]
czsc-utils = "1.0"
use czsc_utils::is_trading_time;
use chrono::NaiveDateTime;

let dt: NaiveDateTime = "2024-01-02 10:30:00".parse().unwrap();
assert!(is_trading_time("000001.SZ", dt));

特性

  • python:启用 PyO3 binding。

项目主页