The current value of a currency in bolĂvars (Bs). Paths are relative to the /api/v1
prefix; this endpoint is public.
See Common errors. USD is the base currency — see Money representation.
| Method | URI | Role | Description |
|---|---|---|---|
GET |
/exchange-rate/{code} |
Public | Current rate (in Bs) for a currency code |
{code} is a currency code (case-insensitive, e.g. ves, USD).
Returns the latest rate for the currency. USD is always available and returns
rateBs: 1.0. Any other code must exist and be active. stale flags a rate
older than its freshness window.
Response 200
{
"code": "VES",
"name": "BolĂvar",
"symbol": "Bs",
"rateBs": 540.04,
"fetchedAt": "2026-06-26T11:30:00+00:00",
"stale": false
}
fetchedAt may be null if the rate has never been fetched.
Errors
| Status | Body | When |
|---|---|---|
404 |
{ "error": "NotFound" } |
Unknown or inactive currency (and not USD) |
503 |
{ "error": "ServiceUnavailable", "message": "…" } |
The rate could not be resolved upstream |
# Current BCV rate for the bolĂvar
curl /api/v1/exchange-rate/ves
# USD is always 1.0
curl /api/v1/exchange-rate/usd