GET /forex/current(Free plan) — all current NGN rates in one call
How the rates work
The API returns rates as how much foreign currency one Naira buys. For example:- NGN → USD:
amount_ngn × rate - USD → NGN:
amount_usd ÷ rate
Step 1: Fetch all rates
One call returns every supported currency pair.Sample response (trimmed)
Step 2: Conversion logic
React component (bidirectional)
Typing in either input updates the other in real time.React
Vanilla JavaScript (with a rate table)
Display all rates alongside the converter:JavaScript
Tips
Cache rates for the session. Forex rates update daily, so one fetch per page load is sufficient. No need to poll on an interval like equity prices. Always showlast_updated. The response includes a last_updated date. Display it near your rates so users know how fresh the data is.
Cross-pair conversion routes through NGN. All rates are NGN-based, so to convert USD → GBP you divide by the USD rate to get NGN, then multiply by the GBP rate. The convert() function above handles this automatically.
Forex current reference
Full response spec for
GET /forex/currentForex history reference
Historical NGN rates with date range filtering