Skip to content

feat(pricing): add GET /price/:asset/fiat for local currency conversion and naira valuation (#290) - #529

Open
sparkysolutions10-pixel wants to merge 1 commit into
Divinity-Labs:mainfrom
sparkysolutions10-pixel:feat/fiat-pricing-naira-290
Open

sparkysolutions10-pixel wants to merge 1 commit into
Divinity-Labs:mainfrom
sparkysolutions10-pixel:feat/fiat-pricing-naira-290

Conversation

@sparkysolutions10-pixel

Copy link
Copy Markdown
Contributor

Closes #290

Summary of Changes

  • Implements GET /price/:asset/fiat endpoint enabling valuation of Stellar assets in real-world fiat currencies.
  • First-class support for Nigerian Naira (NGN) as well as USD, EUR, GBP, KES, ZAR, CAD, and BRL.
  • Computes deterministic cross-rates (asset -> USD -> target_fiat) with fallback safety and timestamp tracking.
  • Validates target currency and returns HTTP 400 with the list of supported fiat codes for invalid requests.
  • Fully registered in openapi.yaml and verified with automated unit tests in src/__tests__/fiat.test.ts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No route answers what an asset is worth in naira

1 participant