> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rach.finance/llms.txt
> Use this file to discover all available pages before exploring further.

# FX rates

> Live exchange rates for 150+ currencies, the same ones Rach uses to price checkouts and bank payouts. Free, no API key.

Rach keeps live mid-market exchange rates for every currency a checkout can be
priced in. The endpoints are public — no API key — so you can show prices in your
customer's currency before you create a checkout.

## Where the rates come from

Rach reads four free, independent public feeds at once: **Coinbase**,
**open.er-api.com**, **currency-api** and **Frankfurter** (European Central Bank).
For each currency it takes the median of the feeds that agree within 3%, and a
currency is offered only when **at least two feeds agree**. A single bad print can
never set a price.

Rates refresh at most every 10 minutes. If every feed is down, the last good set
keeps serving for up to 6 hours with `"stale": true`; after that, prices in other
currencies are refused until the feeds return. USD prices are never affected.

USDT and USDC are priced as US dollars.

## List currencies

```bash theme={null}
curl https://api.rach.finance/api/v1/fx/currencies
```

```json theme={null}
{
  "currencies": [
    { "code": "AED", "name": "UAE Dirham", "decimals": 2 },
    { "code": "NGN", "name": "Nigerian Naira", "decimals": 2 },
    { "code": "XOF", "name": "West African CFA Franc", "decimals": 0 }
  ],
  "stablecoins": [
    { "code": "USDT", "name": "Tether USD", "priced_as": "USD" },
    { "code": "USDC", "name": "USD Coin", "priced_as": "USD" }
  ],
  "updated_at": "2026-11-23T09:40:12Z",
  "stale": false,
  "sources": ["coinbase", "currency-api", "frankfurter (ECB)", "open.er-api.com"]
}
```

`decimals` is the currency's minor unit: a checkout price in that currency may
not have more decimals than this.

## Get rates

```bash theme={null}
curl "https://api.rach.finance/api/v1/fx/rates?base=USD&symbols=NGN,GHS,KES"
```

```json theme={null}
{
  "base": "USD",
  "rates": { "GHS": "11.79999798", "KES": "130.08237497", "NGN": "1367.642612" },
  "updated_at": "2026-11-23T09:40:12Z",
  "stale": false,
  "sources": ["coinbase", "currency-api", "frankfurter (ECB)", "open.er-api.com"]
}
```

Each rate is units of that currency for one unit of `base`. Omit `symbols` for
every currency. `base` can be any listed currency, or `USDT`/`USDC`.

## Convert an amount

```bash theme={null}
curl "https://api.rach.finance/api/v1/fx/convert?from=NGN&to=USD&amount=50000"
```

```json theme={null}
{
  "from": "NGN",
  "to": "USD",
  "amount": "50000",
  "result": "36.56",
  "rate": "0.000731188155",
  "updated_at": "2026-11-23T09:40:12Z",
  "stale": false,
  "sources": ["coinbase", "currency-api", "frankfurter (ECB)", "open.er-api.com"]
}
```

`result` is rounded to the target currency's decimals. This is an estimate: a
checkout rounds its dollar amount **up** to the cent and locks the rate when you
create it, so the checkout response is the amount to rely on.

## Errors

| Status | `code` | Meaning |
| - | - | - |
| `400` | `unsupported_currency` | Not a currency, or fewer than two feeds agree on it right now |
| `503` | `fx_unavailable` | No feed answered and no recent rates are stored; retry shortly |

## Where Rach uses these rates

* **[Checkouts](https://docs.rach.finance/products/crypto-gateway.md#price-in-any-currency)** priced in another
  currency are converted at creation and the rate is locked for the session.
* **[Bank withdrawals](https://docs.rach.finance/guides/settlement-withdrawals.md)** in naira are quoted at the
  live rate when you request them, unless Rach's operations team has fixed a payout
  rate.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.