API Reference
Welcome to the StriderFX API. Our API provides real-time, high-frequency currency exchange data for 172 currency entries — comprising 161 actively circulating currencies and 11 legacy ISO codes for backward compatibility — including both standard and parallel market rates for select regions.
The API is built on REST principles, returns JSON-encoded responses, and uses standard HTTP response codes. Every request is authenticated with a developer API key, and every conversion call is billed against a prepaid credit balance.
https://www.striderfxapi.com/api/v1/
Getting Started
You need three things to make your first request:
- A developer account — create one.
- A prepaid USD balance — top up via your virtual bank account in the dashboard.
- An API key — generate one in the dashboard, then store the raw key securely (it is shown only once).
Pricing
Billing is prepaid and deterministic. There are no surprises, no usage tiers, and no hidden per-request surcharges.
Live conversions (/convert) are billed at 10 credits per successful call. Metadata lookups (/currencies) are free under your key. Failed conversions — including upstream outages, invalid parameters, and insufficient balances — are automatically refunded.
Authentication
Every request to /api/v1/ must include your API key in one of two headers:
X-API-Key: fx_live_xxxxx(recommended)Authorization: Bearer fx_live_xxxxx
API keys are managed from your dashboard. You can have multiple active keys per account (up to 5), each with a human-readable label — useful for separating production from staging, or one client from another.
Convert Currency
Retrieve the current exchange rate between two currencies and calculate the converted amount. For specific regions (Nigeria and Ghana), this endpoint returns both the official standard rate and the parallel market rate.
Headers
| Header | Value | Required |
|---|---|---|
X-API-Key | fx_live_… | Yes |
Accept | application/json | No |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
from | String | Yes | The 3-letter ISO currency code you are converting from (e.g., USD). |
to | String | Yes | The 3-letter ISO currency code you are converting to (e.g., NGN). Legacy codes (e.g. ZWL) are accepted and resolved to their modern equivalent. |
amount | Number | No | The amount to convert. Defaults to 1. |
Example Request
curl -s 'https://www.striderfxapi.com/api/v1/convert?from=USD&to=NGN&amount=100' \ -H 'X-API-Key: fx_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
Example Response
For dual-rate currencies (like NGN and GHS), the rates object contains multiple keys. You can verify how many credits were charged via the X-Credits-Charged and X-Credits-Remaining response headers.
{
"success": true,
"from": "USD",
"from_name": "US Dollar",
"from_symbol": "$",
"from_flag": "/assets/flags/us.png",
"to": "NGN",
"to_name": "Nigerian Naira",
"to_symbol": "₦",
"to_flag": "/assets/flags/ng.png",
"amount": 100,
"rates": {
"Standard Rate": { "rate": 1355.81, "converted": 135581.07, "display": "1 USD = 1,355.810000 NGN" },
"Parallel Rate": { "rate": 1384.90, "converted": 138490.18, "display": "1 USD = 1,384.901821 NGN" }
},
"dual_rate": true,
"timestamp": "Sun, Oct 19, 2026, 11:24 PM"
}
Response Headers
| Header | Description |
|---|---|
X-Credits-Charged | The number of credits deducted for this call (e.g. 10). |
X-Credits-Remaining | Your new credit balance after the call. |
"dual_rate" boolean. If true, build your UI to handle multiple rate objects. If false, only one rate (usually "Standard Rate") will be present.
endpoint = "convert_refund" and a negative credit row.
List Currencies
Retrieve a complete dictionary of all 172 supported currency entries — including 161 modern currencies and 11 legacy ISO codes — with their ISO codes, full names, native symbols, country, absolute paths to their local flag images, and per-currency metadata (has_dual_rate, rate_source, market_rate_label). Use this endpoint to dynamically populate dropdowns in your application, or to look up which currencies support dual (parallel + standard) rates.
This endpoint is free. It requires a valid API key (so we can rate-limit abusive scrapers), but does not deduct any credits. Responses are cached server-side for 15 minutes and served with a Cache-Control: public, max-age=900 header.
Headers
| Header | Value | Required |
|---|---|---|
X-API-Key | fx_live_… | Yes |
Response Fields
| Field | Type | Description |
|---|---|---|
metadata.version | String | API schema version (e.g. "1.0.4"). |
metadata.updated_at | String | ISO-8601 timestamp of the last currency-list update. |
metadata.count | Number | Total supported currency entries (currently 172). |
metadata.flag_base | String | Base path for local flag assets. |
metadata.dual_rate_currencies | Array | ISO codes that return multiple rates. Currently ["NGN","GHS"]. |
currencies.{CODE}.name | String | Full currency name (e.g. "Nigerian Naira"). |
currencies.{CODE}.country | String | Primary country (e.g. "Nigeria"). |
currencies.{CODE}.countries | Array | null | For multi-country unions (EUR, XAF, XCD, XCG, XOF, XPF). |
currencies.{CODE}.flag | String | 2-letter country code (e.g. "ng"). |
currencies.{CODE}.flag_url | String | Absolute flag URL (e.g. "/assets/flags/ng.png"). |
currencies.{CODE}.symbol | String | Native symbol (e.g. "₦"). |
currencies.{CODE}.has_dual_rate | Boolean | true for NGN and GHS. |
currencies.{CODE}.rate_source | String | "official" or "parallel". |
currencies.{CODE}.market_rate_label | String | Primary rate label (e.g. "Standard Rate"). |
currencies.{CODE}.legacy | Boolean | true for legacy ISO codes. Only present when true. |
currencies.{CODE}.replaced_by | String | Modern code that replaced this legacy currency. Only present on legacy entries. |
Example Request
curl -s 'https://www.striderfxapi.com/api/v1/currencies' \ -H 'X-API-Key: fx_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
Response Headers
| Header | Description |
|---|---|
X-Cache | HIT or MISS — whether this response was served from server-side cache. |
X-Credits-Charged | Always 0 for this endpoint. |
Cache-Control | public, max-age=900 — safe to cache client-side for 15 minutes. |
currencies by has_dual_rate === true to render dual-rate cards for NGN/GHS. Use flag_url (not flag) when building <img> tags. Filter out legacy === true if you only want actively circulating currencies.
Legacy Currencies
InfoThe StriderFX API includes 11 legacy ISO codes for backward compatibility. Each legacy entry carries two extra fields:
"legacy": true— flags the entry as a retired/replaced currency."replaced_by": "<NEW>"— the modern ISO code that superseded it.
Legacy codes are fully supported in /convert: the engine resolves them to their modern equivalent before looking up the rate, while still echoing the original code in the response. This means old client integrations that still request ZWL, ANG, or DEM keep working without any code change.
Common Examples
| Legacy | Replaced by | Country |
|---|---|---|
ANG | XCG | Curaçao / Sint Maarten |
ZWL | ZWG | Zimbabwe |
SLL | SLE | Sierra Leone |
CUC | CUP | Cuba |
HRK | EUR | Croatia |
GWP | XOF | Guinea-Bissau |
TPE | USD | Timor-Leste |
DEM | EUR | Germany |
FRF | EUR | France |
ITL | EUR | Italy |
YUM | RSD | Yugoslavia → Serbia |
VEF | VES | Venezuela |
"legacy": true in the /currencies response, surface a hint like "This currency was replaced by replaced_by" and offer the modern code as a follow-up option. The flag on a legacy entry always matches the currency's original country.
Errors & Responses
The API returns standard HTTP status codes. In the event of an error, the response body will always contain a success: false flag and a message.
| Status | Meaning | Billed? |
|---|---|---|
200 OK | Successful conversion or currencies list. | Yes (convert only) |
400 Bad Request | Missing or invalid query parameters. | No |
401 Unauthorized | Missing or invalid API key. | No |
402 Payment Required | Insufficient credits. Top up in the dashboard. | No |
403 Forbidden | Account suspended or inactive. | No |
429 Too Many Requests | Rate limit exceeded (currencies: 60/min per key). | No |
502 Bad Gateway | Upstream FX provider failed — credits auto-refunded. | No |
Error Examples
Missing API key — 401
{
"success": false,
"error": "missing_api_key",
"message": "Provide your API key in the X-API-Key header (or Authorization: Bearer <key>)."
}
Insufficient credits — 402
{
"success": false,
"error": "insufficient_credits",
"message": "Insufficient credits. You need 10 credits but have 4.",
"credits_remaining": 4,
"cost_per_call": 10
}
Invalid currency pair — 200 with success: false
{
"success": false,
"error": "No rates available",
"message": "All sources failed to provide a rate for XYZ/ABC"
}