Commit Graph

7 Commits

Author SHA1 Message Date
Charlie Tonneslan e0b41fbb82 Simplify _yf_retry: remove unused variable and unreachable code 2026-03-22 12:51:06 -04:00
Charlie Tonneslan 781dd971ba Add retry with exponential backoff for yfinance rate limits
When yfinance hits Yahoo Finance rate limits (429 Too Many Requests),
the data fetch fails immediately and the Market Analyst agent loops
endlessly. This adds a simple retry wrapper with exponential backoff
(2s, 4s, 8s) that catches rate limit errors and waits before retrying.

Addresses #415
2026-03-22 12:43:44 -04:00
Yijia-Xiao b0f9d180f9 fix: harden stock data parsing against malformed CSV and NaN values
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.
2026-03-15 18:29:43 +00:00
Yijia Xiao 3d040f8da4
feat: add yfinance support to accommodate community request for stability and quota 2026-02-03 22:27:20 +00:00
Edward Sun 7bb2941b07 optimized yfin fetching to be much faster 2025-10-06 19:58:01 -07:00
Edward Sun c07dcf026b added fallbacks for tools 2025-10-03 22:40:09 -07:00
luohy15 b01051b9f4 Switch default data vendor
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-30 12:43:27 +08:00