Add deposit totals API endpoint

GET /api/deposits/totals returns fiat deposited per exchange per currency
from bank_to_exchange events, aggregated via SQL.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-08 12:32:05 +01:00
co-authored by Claude Opus 4.6
parent 5874952115
commit 0446d928e6
3 changed files with 16 additions and 1 deletions
+3 -1
View File
@@ -172,7 +172,9 @@
{:get (fn [req] (tx/get-wallet-events opts req))}]
["/events"
{:get (fn [req] (tx/list-events opts req))
:post (fn [req] (tx/create-event! opts req))}]])
:post (fn [req] (tx/create-event! opts req))}]
["/deposits/totals"
{:get (fn [req] (tx/get-deposit-totals opts req))}]])
(defn route-data [opts]
(merge