Add Alpha Vantage API integration as primary data provider

- Replace FinnHub with Alpha Vantage API in README documentation
- Implement comprehensive Alpha Vantage modules:
  - Stock data (daily OHLCV with date filtering)
  - Technical indicators (SMA, EMA, MACD, RSI, Bollinger Bands, ATR)
  - Fundamental data (overview, balance sheet, cashflow, income statement)
  - News and sentiment data with insider transactions
- Update news analyst tools to use ticker-based news search
- Integrate Alpha Vantage vendor methods into interface routing
- Maintain backward compatibility with existing vendor system

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
luohy15
2025-09-26 22:57:50 +08:00
parent a6734d71bc
commit 0ab323c2c6
14 changed files with 519 additions and 19 deletions
@@ -4,21 +4,21 @@ from tradingagents.dataflows.interface import route_to_vender
@tool
def get_news(
query: Annotated[str, "Search query or ticker symbol"],
ticker: Annotated[str, "Ticker symbol"],
start_date: Annotated[str, "Start date in yyyy-mm-dd format"],
end_date: Annotated[str, "End date in yyyy-mm-dd format"],
) -> str:
"""
Retrieve news data for a given query or ticker symbol.
Retrieve news data for a given ticker symbol.
Uses the configured news_data vendor.
Args:
query (str): Search query or ticker symbol
ticker (str): Ticker symbol
start_date (str): Start date in yyyy-mm-dd format
end_date (str): End date in yyyy-mm-dd format
Returns:
str: A formatted string containing news data
"""
return route_to_vender("get_news", query, start_date, end_date)
return route_to_vender("get_news", ticker, start_date, end_date)
@tool
def get_global_news(