Schedule Kraken OHLC polls at HH:01 UTC instead of fixed 5-min interval

Hourly candles only finalize on the hour, so polling every 5 minutes
was wasteful. Now the poller sleeps until 1 minute past each hour,
fetches immediately on first run when no data exists, and logs time
to next fetch on startup.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-17 17:40:36 +01:00
co-authored by Claude Opus 4.6
parent 553dac3069
commit 30aa52cdc7
2 changed files with 35 additions and 13 deletions
+1 -2
View File
@@ -59,5 +59,4 @@
:uri "wss://stream.binance.com:9443/ws/btcusdt@trade"}
:kraken/ohlc
{:query-fn #ig/ref :db.sql/query-fn
:interval-ms 300000}}
{:query-fn #ig/ref :db.sql/query-fn}}