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

Open
#8 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
58/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
fastapi, python

Research direction

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.

Written by the indexing model from the issue text.

Description

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.
Dominant language
Python
Stars
0
Forks
1
Avg merge
19h 43m
Merged PRs (30d)
5

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from sepbox-dev/sepbox

All issues in sepbox-dev/sepbox

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.