4c1d839a1ab6adc793144ef395574c868eaed01f
A single 5-minute refresh_interval applied to every timeframe wasted API credits: a daily candle was being refetched every 5 minutes even though it only changes once per day. Now each TF caches for roughly its bar interval, so repeat scans within an hour skip D1 entirely (saves ~60s of throttle wait) and within 30 min also skip H1. config.py: new cache_ttl_per_tf dict on PlatformConfig with sensible defaults for every timeframe; refresh_interval kept as fallback. data_provider.py: _cache_ttl() helper used by both fetch_ohlcv and prefetch_batch instead of the global refresh_interval. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Description
No description provided
Languages
Python
92.4%
HTML
6.6%
PHP
1%