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:
知微
2026-07-08 23:54:01 +08:00
parent 0e21a3ae83
commit 9fef32413b
46 changed files with 5530 additions and 21994 deletions
+4 -2
View File
@@ -8,8 +8,10 @@ import os
from mo_data import read_portfolio, read_watchlist
PORTFOLIO_PATH = "/home/hmo/web-dashboard/data/portfolio.json"
WATCHLIST_PATH = "/home/hmo/web-dashboard/data/watchlist.json"
# PORTFOLIO_PATH / WATCHLIST_PATH 均已废弃,数据在 mofin.db。
# 保留常量仅防止引用报错,新代码请用 mo_data.read_portfolio() / read_watchlist()。
PORTFOLIO_PATH = "/home/hmo/web-dashboard/data/portfolio.json" # 废弃
WATCHLIST_PATH = "/home/hmo/web-dashboard/data/watchlist.json" # 废弃
MTF_CACHE_PATH = "/home/hmo/web-dashboard/data/multi_tf_cache.json"