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
+2 -3
View File
@@ -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",
)
)