Files
ForexBot2/CLAUDE.md
T
2026-05-05 16:37:11 -04:00

1.3 KiB

ForexBot2 — Known Bugs & Dev Notes

[RESOLVED] Bug 1 — Concurrent TF scans exhaust API credits instantly

Status: Resolved Resolution: Replaced the Twelve Data API with yfinance in data_provider.py. Since yfinance has no strict per-minute rate limiting, concurrent scans no longer fail. Furthermore, the signal_aggregator.py has been updated to use ThreadPoolExecutor to speed up pair analysis in parallel.


[RESOLVED] Bug 2 — XAUUSD (Gold) shows wrong price (~1.01 instead of ~3300)

Status: Resolved Resolution: By transitioning entirely to yfinance, XAUUSD is now natively mapped to GC=F via the _YF_FALLBACK_MAP. This means we get the real, correct OHLCV data directly without needing synthetic fallbacks.


Notes

  • Data Provider: The primary data provider is now yfinance. Twelve Data has been completely removed along with all its throttle logic and API Key requirements.
  • Parallelization: Pair analysis is now multithreaded using ThreadPoolExecutor in signal_aggregator.py, maximizing the speed of data fetching and processing.
  • Supported pairs: All forex pairs (EURUSD, GBPUSD, USDJPY, etc.) are fetched with an =X suffix in Yahoo Finance. Commodities like Gold (XAUUSD=X) use their futures symbols (GC=F).