Initial commit: btcdata — BTC data backend service

Split from btcprice monolith. Owns DB, migrations, Binance WebSocket,
Kraken OHLC pollers, and exposes a JSON API with SSE price stream.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-23 20:07:30 +01:00
co-authored by Claude Opus 4.6
commit f64aa98b04
35 changed files with 1079 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
(ns pmagnus.btcdata.env
(:require
[clojure.tools.logging :as log]))
(def defaults
{:init (fn [] (log/info "\n-=[btcdata starting]=-"))
:start (fn [] (log/info "\n-=[btcdata started successfully]=-"))
:stop (fn [] (log/info "\n-=[btcdata has shut down successfully]=-"))
:middleware (fn [handler _] handler)
:opts {:profile :prod}})
+14
View File
@@ -0,0 +1,14 @@
<configuration>
<statusListener class="ch.qos.logback.core.status.NopStatusListener" />
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<root level="INFO">
<appender-ref ref="STDOUT" />
</root>
<logger name="org.eclipse.jetty" level="WARN" />
<logger name="io.undertow" level="WARN" />
<logger name="org.xnio" level="WARN" />
</configuration>