This example fetches the latest NGN exchange rates against all supported currencies, then drills into the USD/NGN pair for a 30-day history suitable for charting. Endpoints used:Documentation Index
Fetch the complete documentation index at: https://docs.ngnmarket.com/llms.txt
Use this file to discover all available pages before exploring further.
GET /v1/forex/current(Free plan)GET /v1/forex/history(Starter plan)
Fetch current rates
Returns live NGN rates against all supported currencies in a single call.Sample response
Fetch 30-day USD/NGN history
Useful for rendering a rate trend chart or calculating how much the naira has moved against the dollar.Sample response (trimmed)
Supported currencies
USD EUR GBP CAD AUD GHS ZAR CNY JPY SAR NGN
Pass source and target in any direction. For example, source=NGN&target=USD gives you the inverse rate.
Current rates reference
GET /v1/forex/current parametersRate history reference
GET /v1/forex/history parameters