Harwinder 3a17471c0e Persist ForexDataProvider across calls — speeds up repeat /scans 50×
Cold /scan is rate-limited (4 pairs × 3 TFs = 12 credits, free tier 8/min)
so the first call takes ~73s. Without provider reuse, every subsequent
/scan is also ~73s because the cache is rebuilt from scratch.

Reusing the provider on the bot instance preserves the OHLCV cache
between calls, so a /scan within the cache TTLs (M15: 5m, H1: 30m,
D1: 4h) skips the prefetch entirely:

  Cold /scan:  ~73s  (rate-limited prefetch + analyze + Gemini)
  Warm /scan:  ~10s  (cached data, news re-scored)
  Re-warm:     ~1.5s (cached data + cached sentiment)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-06 12:23:00 -04:00
2026-05-05 22:44:58 -04:00
2026-05-04 14:29:32 +00:00
2026-05-04 14:29:32 +00:00
S
Description
No description provided
28 MiB
Languages
Python 92.4%
HTML 6.6%
PHP 1%