Add OHLC values to Kraken minute poller log output
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -70,9 +70,10 @@
|
||||
(when last-ts
|
||||
(reset! since-atom last-ts))
|
||||
(let [fmt (DateTimeFormatter/ofPattern "HH:mm")
|
||||
latest (:ts (last candles))
|
||||
ts-str (.format (.atOffset (Instant/ofEpochSecond latest) ZoneOffset/UTC) fmt)]
|
||||
(log/info "Kraken minute:" (count candles) "candles, latest" ts-str "UTC")))
|
||||
c (last candles)
|
||||
ts-str (.format (.atOffset (Instant/ofEpochSecond (:ts c)) ZoneOffset/UTC) fmt)]
|
||||
(log/info "Kraken minute:" (count candles) "candles, latest" ts-str "UTC"
|
||||
"O" (str (:open c)) "H" (str (:high c)) "L" (str (:low c)) "C" (str (:close c)))))
|
||||
(count candles)))
|
||||
|
||||
(defn- start-poll-loop!
|
||||
|
||||
Reference in New Issue
Block a user