Add Strike quote endpoint for real sats price with fee-adjusted amount

Use POST /v1/currency-exchange-quotes to get actual buy price including
spread, matching the Strike app. Fee is cached daily to calculate the
pre-fee amount from the configured total (default 55 EUR). Store
quote_sats in the strike_price DB table.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-06 11:42:35 +01:00
co-authored by Claude Opus 4.6
parent 3e5fd490b4
commit 146c3a4788
5 changed files with 82 additions and 13 deletions
+3 -2
View File
@@ -64,5 +64,6 @@
{:url #or [#env FRANKFURTER_URL "http://localhost:8080"]}
:strike/ticker
{:query-fn #ig/ref :db.sql/query-fn
:api-key #env STRIKE_API_KEY}}
{:query-fn #ig/ref :db.sql/query-fn
:api-key #env STRIKE_API_KEY
:sats-eur-amount #or [#env SATS_EUR_AMOUNT "55"]}}