Files
hash-wallet/lib
bd8cc6901e Charts: detect missing older cached prices in _firstUnavailablePrice (#3675)
* Charts: detect missing older cached prices in _firstUnavailablePrice

Only the newest cached point was checked, so after loading a short range
(e.g. 30D or 1H) a longer range (1Y/ALL or 1D) skipped the API fetch and
showed only the shorter range's data. Now walk the cached points aligned
to the requested precision from the range start and return the first
missing slot (before the oldest point, in a gap, or after the newest),
tolerating a single missing slot. The existing newest-point check is kept.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XHSNx4epaJ8hpwuFvWjTmy

* Charts: drop comment and logging, use explicit type in _firstUnavailablePrice

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XHSNx4epaJ8hpwuFvWjTmy

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-05 14:31:37 +02:00
..
2026-10-04 13:22:05 +02:00
2026-09-22 16:46:42 +02:00
2026-10-04 13:22:05 +02:00
2026-08-26 01:01:52 +08:00
2026-10-04 13:22:05 +02:00
2026-10-04 13:22:05 +02:00
2026-10-04 13:22:05 +02:00
2026-10-04 13:22:05 +02:00
2026-10-04 13:22:05 +02:00
2026-10-04 13:22:05 +02:00
2026-10-04 13:22:05 +02:00
2026-10-04 13:22:05 +02:00
2026-08-28 15:49:51 +08:00
2026-10-04 13:22:05 +02:00
2026-09-22 16:46:42 +02:00