Fundamental_Analysis/config/data_sources.yaml
xucheng edfd51b0a7 feat: 昨日快照API与前端卡片;注册orgs路由;多项优化
- backend(financial): 新增 /china/{ts_code}/snapshot API,返回昨日交易日的收盘价/市值/PE/PB/股息率等

- backend(schemas): 新增 TodaySnapshotResponse

- backend(main): 注册 orgs 路由 /api/v1/orgs

- backend(providers:finnhub): 归一化财报字段并计算 gross_margin/net_margin/ROA/ROE

- backend(providers:tushare): 股东户数报告期与财报期对齐

- backend(routers/financial): years 默认改为 10(最大 10)

- config: analysis-config.json 切换到 qwen-flash-2025-07-28

- frontend(report/[symbol]): 新增“昨日快照”卡片、限制展示期数为10、优化增长与阈值高亮、修正类名与标题处理

- frontend(reports/[id]): 统一 period 变量与计算,修正表格 key

- frontend(hooks): 新增 useChinaSnapshot 钩子与类型

- scripts: dev.sh 增加调试输出
2025-11-05 17:00:32 +08:00

38 lines
1.0 KiB
YAML

# Configuration for data sources used by the DataManager
# Defines the available data sources and their specific configurations.
# 'api_key_env' specifies the environment variable that should hold the API key/token.
data_sources:
tushare:
api_key_env: TUSHARE_TOKEN
description: "Primary data source for China market (A-shares)."
yfinance:
api_key_env: null # No API key required
description: "Good for global market data, especially US stocks."
finnhub:
api_key_env: FINNHUB_API_KEY
description: "Another comprehensive source for global stock data."
# Defines the priority of data providers for each market.
# The DataManager will try them in order until data is successfully fetched.
markets:
CN: # China Market
priority:
- tushare
- yfinance # yfinance can be a fallback
US: # US Market
priority:
- finnhub
- yfinance
HK: # Hong Kong Market
priority:
- yfinance
- finnhub
JP: # Japan Market
priority:
- yfinance
DEFAULT:
priority:
- yfinance
- finnhub