|
1 | | -"""Shared domain models, ports, strategy contracts, and plugin helpers.""" |
| 1 | +"""Shared domain models, ports, strategy contracts, plugin helpers, and pipeline contracts. |
| 2 | +
|
| 3 | +This package provides the foundational types and utilities used across all |
| 4 | +QuantStrategyLab repositories. New cross-cutting additions (contracts, |
| 5 | +artifacts, indicators, etc.) should be placed here rather than duplicated. |
| 6 | +""" |
2 | 7 |
|
3 | 8 | from .notification_localization import ( |
4 | 9 | COMMON_ZH_NOTIFICATION_REPLACEMENTS, |
|
8 | 13 | resolve_strategy_display_name, |
9 | 14 | translator_uses_zh, |
10 | 15 | ) |
| 16 | +from .artifacts import ( |
| 17 | + RELEASE_MANIFEST_TYPE, |
| 18 | + FEATURE_SNAPSHOT_MANIFEST_TYPE, |
| 19 | + STRATEGY_PLUGIN_MANIFEST_TYPE, |
| 20 | + load_json, |
| 21 | + json_safe, |
| 22 | + sha256_file, |
| 23 | + write_json, |
| 24 | + write_release_manifest, |
| 25 | +) |
| 26 | +from .contracts import ( |
| 27 | + SnapshotBuildResult, |
| 28 | + SnapshotProfileContract, |
| 29 | + resolve_snapshot_profile, |
| 30 | +) |
| 31 | +from .indicators import ( |
| 32 | + atr, |
| 33 | + ema, |
| 34 | + max_drawdown, |
| 35 | + momentum, |
| 36 | + percentile_rank, |
| 37 | + rolling_correlation, |
| 38 | + rolling_volatility, |
| 39 | + rsi, |
| 40 | + sma, |
| 41 | + trend_strength, |
| 42 | + zscore, |
| 43 | +) |
11 | 44 | from .execution_outcomes import ( |
12 | 45 | DEFAULT_EXECUTION_BLOCKING_SKIP_REASONS, |
13 | 46 | DEFAULT_TERMINAL_FUNDING_BLOCK_SKIP_REASONS, |
|
100 | 133 | ) |
101 | 134 |
|
102 | 135 | __all__ = [ |
| 136 | + "FEATURE_SNAPSHOT_MANIFEST_TYPE", |
| 137 | + "RELEASE_MANIFEST_TYPE", |
| 138 | + "STRATEGY_PLUGIN_MANIFEST_TYPE", |
| 139 | + "SnapshotBuildResult", |
| 140 | + "SnapshotProfileContract", |
| 141 | + "atr", |
| 142 | + "ema", |
| 143 | + "json_safe", |
| 144 | + "load_json", |
| 145 | + "max_drawdown", |
| 146 | + "momentum", |
| 147 | + "percentile_rank", |
| 148 | + "resolve_snapshot_profile", |
| 149 | + "rolling_correlation", |
| 150 | + "rolling_volatility", |
| 151 | + "rsi", |
| 152 | + "sha256_file", |
| 153 | + "sma", |
| 154 | + "trend_strength", |
| 155 | + "write_json", |
| 156 | + "write_release_manifest", |
| 157 | + "zscore", |
103 | 158 | "COMMON_ZH_NOTIFICATION_REPLACEMENTS", |
104 | 159 | "CRISIS_RESPONSE_SHADOW_SUPPORTED_STRATEGIES", |
105 | 160 | "DEFAULT_EXECUTION_BLOCKING_SKIP_REASONS", |
|
0 commit comments