晶体简介
Constraints
Evidence Quality
Medium confidence — review before critical use
46 条不可违反的约束
WHENWhen implementing BarGenerator.update() with a RawBar input
ACTIONvalidate that bar.freq.value equals base_freq before processing
CONSEQUENCEFrequency mismatch causes incorrect bar aggregation across all time frequencies, corrupting OHLCV synthesis for daily, weekly, and monthly bars
WHENWhen implementing BarGenerator initialization with base_freq parameter
ACTIONvalidate that base_freq exists in sorted_freqs list before accepting
CONSEQUENCEInvalid base_freq causes KeyError when accessing freq_map dictionary, crashing the entire bar generation pipeline
WHENWhen implementing DataClient._get_cache() to read cached API responses
ACTIONacquire thread lock before reading pickle cache file to prevent race conditions
CONSEQUENCEConcurrent read/write access to pickle cache files causes corrupted DataFrames and silent data loss during multi-process backtests
常见问题
讨论 (0)
暂无讨论,成为第一个发言的人吧!
更新历史
v0.1.0: 首次发布到 Doramagic.ai。基于 zvtvz/zvt 的自动化 batch-v1 元数据 + 自动生成 FAQ。