A 股多智能体
A 股多智能体:基于 LLM 的 A 股多智能体交易分析框架,支持批量选股对比、回测信号生成和因子研究,自带 OpenAI 兼容 API 适配器模板。 含 25 条反模式约束。
晶体简介
Constraints
Evidence Quality
Medium confidence — review before critical use
57 条不可违反的约束
WHENWhen implementing data source fallback logic
ACTIONUse the defined fallback chain: MongoDB → Tushare → AKShare → BaoStock for CN stocks; MongoDB → yfinance → Alpha Vantage → Finnhub for US stocks
CONSEQUENCEWithout the fallback chain, data collection fails entirely when the primary source is unavailable, causing the entire analysis pipeline to stall and users to receive no market data
WHENWhen validating received market data
ACTIONCheck data is not empty and does not contain error markers ('❌', '错误', '获取失败') before processing
CONSEQUENCEProcessing empty or error data causes downstream analysts to receive invalid inputs, producing garbage output and corrupting analysis results
WHENWhen standardizing DataFrame column names from different providers
ACTIONMap each provider outputs to standard columns: open, high, low, close, vol, amount, date
CONSEQUENCEDifferent provider column naming (Open vs open, Volume vs vol, trade_date vs date) causes technical indicator calculations to fail silently or produce wrong results
常见问题
讨论 (0)
暂无讨论,成为第一个发言的人吧!
更新历史
v0.1.0: 首次发布到 Doramagic.ai。基于 zvtvz/zvt 的自动化 batch-v1 元数据 + 自动生成 FAQ。