mirror of
https://github.com/farcasclaudiu/TradingAgents.git
synced 2026-06-28 19:01:16 +03:00
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:
@@ -3,7 +3,7 @@ import yfinance as yf
|
||||
from stockstats import wrap
|
||||
from typing import Annotated
|
||||
import os
|
||||
from .config import get_config
|
||||
from .config import get_config, DATA_DIR
|
||||
|
||||
|
||||
class StockstatsUtils:
|
||||
@@ -19,7 +19,6 @@ class StockstatsUtils:
|
||||
):
|
||||
# Get config and set up data directory path
|
||||
config = get_config()
|
||||
data_dir = os.path.join(config["DATA_DIR"], "market_data", "price_data")
|
||||
online = config["data_vendors"]["technical_indicators"] != "local"
|
||||
|
||||
df = None
|
||||
@@ -29,7 +28,7 @@ class StockstatsUtils:
|
||||
try:
|
||||
data = pd.read_csv(
|
||||
os.path.join(
|
||||
data_dir,
|
||||
DATA_DIR,
|
||||
f"{symbol}-YFin-data-2015-01-01-2025-03-25.csv",
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user