Closes#203
Data fetch functions were using today's date as the end bound instead of
the simulation's curr_date, allowing future data to leak into backtests.
Changes:
- stockstats_utils.py: replace pd.Timestamp.today() with curr_date + 1 day
- y_finance.py _get_stock_stats_bulk: same fix for yfinance OHLCV download
- y_finance.py get_balance_sheet/get_cashflow/get_income_statement: filter
out fiscal periods whose column timestamp exceeds curr_date
- alpha_vantage_fundamentals.py get_balance_sheet/get_cashflow/get_income_statement:
filter annualReports and quarterlyReports by fiscalDateEnding <= curr_date
- yfinance_news.py get_global_news_yfinance: skip articles with pub_date
after curr_date
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add _clean_dataframe() to normalize stock DataFrames before stockstats:
coerce invalid dates/prices, drop rows missing Close, fill price gaps.
Also add on_bad_lines="skip" to all cached CSV reads.
- Replace hardcoded column indices with column name lookup
- Add mapping for all supported indicators to their expected CSV column names
- Handle missing columns gracefully with descriptive error messages
- Strip whitespace from header parsing for reliability
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- 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>