Persist Frankfurter EUR/DKK rates in currencies table

Store daily exchange rates in PostgreSQL with EUR/DKK cross rate.
Seed rates atom from DB on startup so WebSocket works immediately
even if Frankfurter is unreachable.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-06 12:16:53 +01:00
co-authored by Claude Opus 4.6
parent 146c3a4788
commit 11a1fc6b8f
5 changed files with 60 additions and 18 deletions
+2 -1
View File
@@ -61,7 +61,8 @@
{:query-fn #ig/ref :db.sql/query-fn}
:frankfurter/rates
{:url #or [#env FRANKFURTER_URL "http://localhost:8080"]}
{:url #or [#env FRANKFURTER_URL "http://localhost:8080"]
:query-fn #ig/ref :db.sql/query-fn}
:strike/ticker
{:query-fn #ig/ref :db.sql/query-fn