Commit Graph

7 Commits

Author SHA1 Message Date
voidborne-d 7fd9df3f9d fix: Portfolio Manager reads Trader's plan instead of Research Manager's raw output
Two bugs fixed:

1. Portfolio Manager uses wrong state key (critical):
   portfolio_manager.py read state['investment_plan'] (Research Manager's
   raw output) instead of state['trader_investment_plan'] (Trader's
   memory-refined output). This silently bypassed the Trader agent's
   entire contribution — including lessons learned from past trades —
   in the final risk assessment and trading decision.

   The Trader agent applies FinancialSituationMemory to refine the
   Research Manager's plan with insights from similar past situations.
   By reading the pre-refinement plan, the Portfolio Manager made its
   final decision without this critical context, effectively making the
   Trader node a no-op in the decision pipeline.

2. _get_stock_stats_bulk() missing pandas import:
   y_finance.py uses pd.isna() in _get_stock_stats_bulk() but never
   imports pandas as pd, causing NameError on every call. The fallback
   in get_stock_stats_indicators_window() catches this silently, but
   it defeats the bulk optimization — falling back to O(n) individual
   API calls per date instead of O(1) bulk calculation.

Added 7 tests covering both fixes.
2026-04-03 01:54:53 +00:00
Yijia-Xiao 7cca9c924e fix: add exponential backoff retry for yfinance rate limits (#426) 2026-03-22 22:11:08 +00: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