Commit Graph

8 Commits

Author SHA1 Message Date
tiffanychum ce241998c6 fix: remove stale ChatOpenAI imports, fix hardcoded results path, add missing pandas import
- Remove unused `from langchain_openai import ChatOpenAI` imports from
  graph/setup.py, graph/reflection.py, graph/signal_processing.py, and
  agents/utils/agent_states.py. The framework supports multiple LLM
  providers so these type hints were incorrect and misleading.

- Clean up agents/utils/agent_states.py: remove unused imports of
  Sequence, date, timedelta, datetime, ChatOpenAI, agents star-import,
  ToolNode, END, StateGraph, START (only Annotated, TypedDict, and
  MessagesState are actually used).

- Fix graph/trading_graph.py _log_state(): replace hardcoded
  "eval_results/" relative path with config["results_dir"] so logs land
  in the same configured directory as other run outputs, regardless of
  the working directory the user runs from.

- Fix dataflows/y_finance.py _get_stock_stats_bulk(): add missing
  `import pandas as pd` which caused a NameError on pd.isna() during
  bulk indicator calculation, silently falling back to the slower
  per-day loop.

Made-with: Cursor
2026-04-02 01:16:42 +08:00
Yijia-Xiao e1113880a1
fix: prevent look-ahead bias in backtesting data fetchers (#475) 2026-03-29 17:34:35 +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