How rates changed between two dates
getFluctuationReturns, for every requested currency, its rate at the end of date_from and of date_to and how much it changed in between, in absolute terms and in percent. Both days are UTC days back to 1999-01-01; the newest allowed is yesterday.
The JSON response also has the high, low and average of the daily closes from date_from to date_to (null when the two days are more than 1830 days apart or the span has no data). The CSV keeps its columns.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Filter the returned currencies by type. | |
| 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`. | |
| date_to | Yes | Last day (`YYYY-MM-DD`), on or after `date_from`. | |
| date_from | Yes | First day (`YYYY-MM-DD`). | |
| 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`. |