xalpha 基金工具
xalpha 基金工具:xalpha 支持多市场基金组合分析,实现 A/C 份额成本比较、可转债估值、组合业绩归因及基金相关性分析。 含 14 条反模式约束。
晶体简介
Constraints
Evidence Quality
Medium confidence — review before critical use
46 条不可违反的约束
WHENWhen implementing get_daily return logic
ACTIONReturn DataFrame with date and close columns as minimum required schema
CONSEQUENCEDownstream components expecting OHLCV columns will raise KeyError when date or close fields are missing from returned DataFrame
WHENWhen implementing fundinfo.price DataFrame structure
ACTIONverify DataFrame contains date, netvalue, totvalue, and comment columns
CONSEQUENCEMissing required columns causes downstream trade and backtest calculations to fail with KeyError or NaN values, corrupting financial analysis results
WHENWhen initializing fundinfo with code parameter
ACTIONvalidate that fund code is exactly 6 digits and normalized with zero-padding
CONSEQUENCEInvalid fund codes cause API requests to fail with 404 errors or return incorrect data, leading to ParserFailure exceptions during data acquisition
常见问题
讨论 (0)
暂无讨论,成为第一个发言的人吧!
更新历史
v0.1.0: 首次发布到 Doramagic.ai。基于 tangweigang-jpg/doramagic-skills 的自动化 batch-v1 元数据 + 自动生成 FAQ。