About this endpoint
What it does
Returns cached foreign exchange rates for a given base currency, expressed against ~160 other currency codes.
Query Parameter(s)
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| base | String | No | Base currency code. Default: USD. |
Response
Returns a JSON object with the base currency, the time the rates were generated, and a rates map of currency code to rate.
| Attribute | Type | Description |
|---|---|---|
| success | Boolean | Whether the request succeeded. |
| code | Integer | Numeric response code. |
| base | String | The base currency used. |
| date | String | Timestamp the rates were generated/cached. |
| rates | Object | Map of currency code → exchange rate relative to base. |
| source | String | Upstream data source for the rates. |



