feat(engine): add KES, GHS, and EUR FX corridors with runtime SEP-38 rate overrides

Aperta
#8 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
58/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
fastapi, python

Direzione di ricerca

Start with engine/app/sep38.py to trace how assets, prices, and quotes are handled, then read the corresponding tests in engine/tests/test_sep38.py. Add the KES, GHS, and EUR corridors using 7-decimal Decimal math, and implement runtime rate and fee overrides through the admin control plane. Run the SEP-38 tests; done means the endpoints, quote expiry, deterministic conversions, and overrides meet the acceptance criteria.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

complexity: medium engine

Context

engine/app/sep38.py currently quotes USD, NGN, USDC, and XLM using static rates. Expanding corridor coverage to KES, GHS, and EUR and allowing runtime FX rate overrides via the admin control plane enables realistic cross-border liquidity and slippage testing.

Scope & Target Files

  • engine/app/sep38.py
  • engine/tests/test_sep38.py

Acceptance Criteria

  • Add iso4217:KES, iso4217:GHS, and iso4217:EUR assets to GET /sep38/info, /prices, /price, and POST /sep38/quote using exact 7-decimal Decimal math.
  • Add GET /admin/fx and PUT /admin/fx endpoints to adjust local exchange rates and fee percentages dynamically without restarting the container.
  • Add pytest coverage verifying deterministic Decimal conversions, quote expiry, and runtime rate overrides.
Lingua principale
Python
Stelle
0
Fork
1
Merge medio
19h 43m
PR unite (30g)
5

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di sepbox-dev/sepbox

Tutte le issue di sepbox-dev/sepbox

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.