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.

Base URL: https://www.striderfxapi.com/api/v1/

Getting Started

You need three things to make your first request:

  1. A developer account — create one.
  2. A prepaid USD balance — top up via your virtual bank account in the dashboard.
  3. 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.

Exchange Rate
$1.00 = 4 Credits
Fixed, always.
Cost per API Call
10 Credits
≈ $2.50 USD per call.
Minimum Deposit
$5.00
Top up as needed.
Credit Expiry
Never
Unused credits stay on your account indefinitely.

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:

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.

Keep your keys secret. Store them in environment variables on your server. Never commit them to git or expose them in client-side JavaScript. If a key is compromised, revoke it immediately from the dashboard and generate a new one.

Convert Currency

GET
GET https://www.striderfxapi.com/api/v1/convert

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

HeaderValueRequired
X-API-Keyfx_live_…Yes
Acceptapplication/jsonNo

Query Parameters

ParameterTypeRequiredDescription
fromStringYesThe 3-letter ISO currency code you are converting from (e.g., USD).
toStringYesThe 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.
amountNumberNoThe amount to convert. Defaults to 1.

Example Request

cURL
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.

JSON
{
  "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

HeaderDescription
X-Credits-ChargedThe number of credits deducted for this call (e.g. 10).
X-Credits-RemainingYour new credit balance after the call.
Note on Dual-Rates: Always check the "dual_rate" boolean. If true, build your UI to handle multiple rate objects. If false, only one rate (usually "Standard Rate") will be present.
Automatic refunds: If the upstream provider fails, times out, or returns an invalid response, your credits are automatically refunded and the call appears in your usage history with endpoint = "convert_refund" and a negative credit row.

List Currencies

GET Free
GET https://www.striderfxapi.com/api/v1/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

HeaderValueRequired
X-API-Keyfx_live_…Yes

Response Fields

FieldTypeDescription
metadata.versionStringAPI schema version (e.g. "1.0.4").
metadata.updated_atStringISO-8601 timestamp of the last currency-list update.
metadata.countNumberTotal supported currency entries (currently 172).
metadata.flag_baseStringBase path for local flag assets.
metadata.dual_rate_currenciesArrayISO codes that return multiple rates. Currently ["NGN","GHS"].
currencies.{CODE}.nameStringFull currency name (e.g. "Nigerian Naira").
currencies.{CODE}.countryStringPrimary country (e.g. "Nigeria").
currencies.{CODE}.countriesArray | nullFor multi-country unions (EUR, XAF, XCD, XCG, XOF, XPF).
currencies.{CODE}.flagString2-letter country code (e.g. "ng").
currencies.{CODE}.flag_urlStringAbsolute flag URL (e.g. "/assets/flags/ng.png").
currencies.{CODE}.symbolStringNative symbol (e.g. "₦").
currencies.{CODE}.has_dual_rateBooleantrue for NGN and GHS.
currencies.{CODE}.rate_sourceString"official" or "parallel".
currencies.{CODE}.market_rate_labelStringPrimary rate label (e.g. "Standard Rate").
currencies.{CODE}.legacyBooleantrue for legacy ISO codes. Only present when true.
currencies.{CODE}.replaced_byStringModern code that replaced this legacy currency. Only present on legacy entries.

Example Request

cURL
curl -s 'https://www.striderfxapi.com/api/v1/currencies' \
  -H 'X-API-Key: fx_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'

Response Headers

HeaderDescription
X-CacheHIT or MISS — whether this response was served from server-side cache.
X-Credits-ChargedAlways 0 for this endpoint.
Cache-Controlpublic, max-age=900 — safe to cache client-side for 15 minutes.
Tip: Filter 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

Info

The StriderFX API includes 11 legacy ISO codes for backward compatibility. Each legacy entry carries two extra fields:

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

LegacyReplaced byCountry
ANGXCGCuraçao / Sint Maarten
ZWLZWGZimbabwe
SLLSLESierra Leone
CUCCUPCuba
HRKEURCroatia
GWPXOFGuinea-Bissau
TPEUSDTimor-Leste
DEMEURGermany
FRFEURFrance
ITLEURItaly
YUMRSDYugoslavia → Serbia
VEFVESVenezuela
Handling legacy codes: For display, prefer the modern code. When you detect "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.

StatusMeaningBilled?
200 OKSuccessful conversion or currencies list.Yes (convert only)
400 Bad RequestMissing or invalid query parameters.No
401 UnauthorizedMissing or invalid API key.No
402 Payment RequiredInsufficient credits. Top up in the dashboard.No
403 ForbiddenAccount suspended or inactive.No
429 Too Many RequestsRate limit exceeded (currencies: 60/min per key).No
502 Bad GatewayUpstream FX provider failed — credits auto-refunded.No

Error Examples

Missing API key — 401

JSON
{
  "success": false,
  "error": "missing_api_key",
  "message": "Provide your API key in the X-API-Key header (or Authorization: Bearer <key>)."
}

Insufficient credits — 402

JSON
{
  "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

JSON
{
  "success": false,
  "error": "No rates available",
  "message": "All sources failed to provide a rate for XYZ/ABC"
}