feat: ECR-003 主站威科夫分析与图表叠层(已审)
独立 wyckoff 引擎 + 按需 include_wyckoff;主站 Lightweight 绘制区间/阶段/事件/VP。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -37,10 +37,15 @@ def test_compat_shim_still_works():
|
||||
|
||||
|
||||
def test_analyze_contract_keys_file():
|
||||
keys = json.loads(
|
||||
doc = json.loads(
|
||||
(ROOT / "tests" / "fixtures" / "analyze_contract_keys.json").read_text(
|
||||
encoding="utf-8"
|
||||
)
|
||||
)
|
||||
keys = doc["required"] if isinstance(doc, dict) and "required" in doc else doc
|
||||
for k in ("kline_data", "bi_list", "seg_list", "zs_list", "bsp_list"):
|
||||
assert k in keys
|
||||
if isinstance(doc, dict):
|
||||
assert "include_wyckoff" in doc.get("optional_when", {})
|
||||
for k in ("trading_range", "phases", "events", "volume_profile"):
|
||||
assert k in doc.get("wyckoff_keys", [])
|
||||
|
||||
Reference in New Issue
Block a user