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:
@@ -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}}
|
||||
|
||||
Reference in New Issue
Block a user