feat(frontend): integrate Prisma and reports API/pages chore(config): add data_sources.yaml; update analysis-config.json docs: add 2025-11-03 dev log; update user guide scripts: enhance dev.sh; add tushare_legacy_client deps: update backend and frontend dependencies
38 lines
1.0 KiB
YAML
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:
|
|
- yfinance
|
|
- finnhub
|
|
HK: # Hong Kong Market
|
|
priority:
|
|
- yfinance
|
|
- finnhub
|
|
JP: # Japan Market
|
|
priority:
|
|
- yfinance
|
|
DEFAULT:
|
|
priority:
|
|
- yfinance
|
|
- finnhub
|