# 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