Files
etf/datasource
aszerW 0f4295a144 refactor(flask_server): 多项优化重构
优化内容:

1. fetch_with_adj → fetch(adj=adj)
   - _fetch_full_data_cached 使用 fetch(adj=adj) 替代 fetch_with_adj

2. 加密货币分支添加 adj 参数
   - fetch_data_with_ttl 中加密货币调用添加 adj='raw'

3. ETF 净值溢价率逻辑抽取
   - 新增 build_premium_result() 函数
   - get_ohlcv 和 get_etf_nav 使用该函数,减少 42 行重复代码

4. SSH 配置信息增强
   - ssh_status 改为 ssh 对象,包含更多详细信息
   - 添加 required_types(需要 SSH 的资产类型列表)

代码行数:减少约 40 行重复代码
2026-05-23 19:03:09 +08:00
..