team/dev/: skz-strategy-common-0.1.0 metadata and description
skz 投研系统 · 策略公用模块(配置/权重/发布/报告 — research/realtime 共享)
| description_content_type | text/markdown |
| metadata_version | 2.3 |
| requires_dist |
|
| requires_python | >=3.11 |
Because this project isn't in the mirror_whitelist,
no releases from root/pypi are included.
| File | Tox results | History |
|---|---|---|
skz_strategy_common-0.1.0-py3-none-any.whl
|
|
skz-strategy-common
L1 · 策略公用模块:research 与 realtime 的共享基础设施(配置 / 权重 / 发布 / 报告)。
对外 API
| 名称 | 类型 | 含义 |
|---|---|---|
RealtimeConfig / RuntimeConfig / PublishConfig / FeishuPublishConfig / ClickHousePublishConfig |
Pydantic BaseModel | 策略配置 |
coerce_problem(payload) |
function | 研究问题类型转换器 |
build_model_weights(df, model_name, factor_name) |
function | 单因子建模权重 |
aggregate_factor_weights(df, factor_names) |
function | 多因子权重聚合 |
apply_post_process(df, post_process, only_long) |
function | 后处理(SIGN/WEIGHT/L3C/L5C/L10C/L20C) |
check_weight_consistency(new_df, old_df) |
function | 权重一致性检查 |
FeishuPublisher / WmrClickHousePublisher / WmrDuckDBPublisher / build_publishers |
class & function | 结果发布器(v6.1 wmr 双后端) |
create_realtime_config / create_strategy_name / generate_realtime_toml / write_realtime_toml |
function | TOML 配置生成 |
resolve_weight_type / write_artifacts / generate_html_report |
function | wbt 回测报告生成 |
上下游
- 上游:
skz-common、skz-data-common、skz-strategy-model、czsc、wbt、pandas、tomlkit、rs_czsc、loguru - 下游:
skz-strategy-research、skz-strategy-realtime
本轮范围(迁移基线,对应子文档 §5.1)
仅做"纯迁移"——把 vista 现有 5 个文件原样搬到本包并改 import,不引入子文档 §5.2 的 v6.1 功能性调整:
- wmr 替换 czsc.cwc / WmrClickHousePublisher / WmrDuckDBPublisher
- DuckDBPublishConfig + PublishConfig.duckdb 字段
- ClickHousePublishConfig.dsn 字段
- RuntimeConfig.incremental_lookback_bars 字段
- build_publishers 三端共存语义
- TOML 模板新增
[publish.duckdb]节
v6.1 功能调整因为需要新增第三方依赖(wmr)、新增配置 / 发布器类、新增整套测试,单独排到下一轮的"skz-strategy-common v6.1 升级"专项。