Download all supported currencies with their exchange rates relative to a specified base currency, using the latest rate snapshot.
/api/rates/{base}
Subject to a daily quota. See Rate limits.
| Name | Type | Description |
|---|---|---|
| base | string (3 letters) | Base currency code, e.g. ZAR. Rates are units of each currency per 1 unit of base. |
HTTP 200
{
"base": "ZAR",
"rates": [
{
"code": "EUR",
"country": "Germany",
"symbol": "€",
"rate": 0.052517
},
{
"code": "USD",
"country": "United States of America",
"symbol": "$",
"rate": 0.06114
},
{
"code": "ZAR",
"country": "South Africa",
"symbol": "R",
"rate": 1
}
]
}
Each rate is the unrounded cross-rate (units of code per 1 unit of base). Rows also include the same name, ISO2, decimal precision, symbol placement, and locale metadata as the currencies endpoint. The base currency itself always has rate 1.
curl https://ezforex.your-developer.co.za/api/rates/ZAR \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_TOKEN"