refactor: 统一价格入口 mo_data.get_price() - 22个脚本移除自拉腾讯API
所有价格获取统一走 mo_data.get_price() / get_prices_batch():
- 优先读 live_prices(DB) → 无/过期才调 stock_quote(API) → 自动写回DB
- 22个脚本全部替换:branch_scanner chip_factors divergence_detector
market_screener mo_provider mofin_collect monitor_300308 300308_monitor
multi_timeframe refresh_macro_context stale_detector stale_push_wlin
stock_profile strategy_evaluator strategy_lifecycle strategy_review
strategy-staleness-check technical_analysis xiaoguo_signal_consumer
collect_evaluation_data
This commit is contained in:
@@ -88,3 +88,17 @@
|
||||
**强制规则(以后所有推荐都走):**
|
||||
三步流程:触发系统策略重评 → 检查交易约束 → 基于策略结果出推荐
|
||||
禁止凭行情直接下结论。
|
||||
|
||||
## 2026-07-08 补建prepare_recommendation.py(实际文件缺失修复)
|
||||
|
||||
**发现问题:** 午后监控(13:35)运行时发现prepare_recommendation.py实际不存在——2026-07-07知识日志记录已"新建"但system_inventory.json引用的文件路径缺失。根因: 2026-07-07 session中仅记录了计划/写入意图但文件未实际落盘。
|
||||
|
||||
**修改内容:**
|
||||
1. 实际创建 `/home/hmo/.hermes/profiles/position-analyst/scripts/prepare_recommendation.py`
|
||||
- 调用per_stock_reassess.py获取策略信号(timing_signal/action_note/止损/止盈/RR)
|
||||
- 自动识别市场(A股/港股/科创板)及最小交易单位(100/200)
|
||||
- 对持仓股计算pnl(成本/盈亏金额/盈亏比例)
|
||||
- 输出标准化JSON(strategy + trade_constraints + pnl)
|
||||
- 已验证: 688981(科创板200股)→策略信号:买入但RR1.31<1.5降级+浮盈+22.57%
|
||||
- 已验证: 01478(港股100股)→策略信号:弱势持有+浮亏-48.85%
|
||||
2. 同时生成本日午后监控报告
|
||||
|
||||
Reference in New Issue
Block a user