team/dev/: skz-strategy-model-0.1.0 metadata and description
skz 投研系统 · skz-strategy-model 模块(L1 · 策略建模算法 + ModelConfig + 求解器 + 单数据集回测)
| 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_model-0.1.0-py3-none-any.whl
|
|
skz-strategy-model
L1 · 策略建模算法 + ModelConfig + 求解器工具 + 单数据集 backtest。
对外 API
| 名称 | 类型 | 含义 |
|---|---|---|
BaseStrategyModel |
abstract class | run() / weight_type 协议 |
CSSorting / DirectExposure / MaxExpectedReturns / MaxFactorExposure |
class | 横截面 (cs) 策略模型 |
EventDriven / BaseMovingAverage / MA001 / MA002 |
class | 时序 (ts) 策略模型 |
ModelConfig / get_model_config / list_builtin_model_configs / coerce_model_configs / load_model_config_from_file / load_model_configs_from_file |
function & class | 策略配置(6 个内置清单) |
calculate_yearly_returns(wb, ...) |
function | 年度收益(wbt 友好) |
analyze_returns_diff(...) |
function | 收益差异分析 |
weight_return_monotonicity(...) |
function | 权重收益单调性 |
integrated_backtest(...) |
function | 单数据集回测 |
get_user_strategy / list_user_strategies / load_user_strategies |
function | 用户自定义策略自动加载(路径 ~/.skz/models/ 沿用 vista 历史约定) |
上下游
- 上游:
skz-data-common、skz-common、czsc、wbt、pandas、numpy、polars、scipy、loguru、rich - 可选:
cvxpy/scs/ecos/osqp(extras=[optimization]);mosek(extras=[mosek],商业 license) - 下游:
skz-factor-quality、skz-strategy-research、skz-strategy-realtime、skz-ensemble
已知遗留
- 用户自定义策略目录沿用
~/.skz/models/(虚拟包名skz_user_models),等所有 skz-* 迁完后在 vista meta-package 阶段决定是否改为~/.skz/models/ MOSEK商业 license 不放在默认 extras