Latest exchange rates
getLatestReturns the latest exchange rates for a given base currency (default USD). The update interval of the returned data depends on your subscription plan (from daily down to minutely).
Optional representations, none of which changes the default response: shape=compact for plain values ("EUR": 0.918456), precision to round, inverse=true for the value of one unit of each currency in the base currency, include=change for the change since the previous day's close, and format=csv.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Filter the returned currencies by type. | |
| shape | No | `default`: every rate as `{"code": "EUR", "value": 0.918456}`. `compact`: plain values, `"EUR": 0.918456`. | |
| format | No | `json` (default), `csv` or `xlsx`. CSV has a header line and one row per currency (and point in time), values without exponent notation. `xlsx` is the same table as an Excel workbook (one sheet, bold frozen header row, numbers as numbers), sent as a download named after the endpoint, e.g. `latest.xlsx`. | |
| include | No | `change` adds `change` and `change_pct` to every rate: the difference to the close of the day before `last_updated_at` (`meta.change_since`), computed like `/v1/fluctuation`. Null when that close has no rate for the currency. Not with `shape=compact`. | |
| inverse | No | `true` adds `inverse` to every rate: the value of one unit of the currency in the base currency (1 / value). Not with `shape=compact`. | |
| precision | No | Round every value to this many decimals (0 to 10). By default values carry up to 10 decimals (10 significant digits below 0.1). | |
| currencies | No | Comma-separated list of currency codes to include (e.g. `EUR,USD,CAD`). The array form `currencies[]=EUR¤cies[]=USD` is also accepted. By default all supported currencies are returned. | |
| base_currency | No | The base currency that all returned values are relative to. Defaults to `USD`. |