snb_get_exchange_rates
Fetch monthly CHF exchange rates from the Swiss National Bank for specified currencies. Get average and optional month-end rates.
Instructions
Retrieve monthly CHF exchange rates from the Swiss National Bank (data.snb.ch).
Returns monthly average rates (and optionally month-end rates) for all major currencies against the Swiss Franc (CHF). Data source: SNB cube 'devkum'. Rates are expressed as the CHF value of the stated foreign currency unit (e.g. EUR1: 1 EUR = 0.9416 CHF; JPY100: 100 JPY = 0.58 CHF).
Args: params (ExchangeRatesInput): - currencies: List of currency IDs (e.g. ['EUR1', 'USD1']). Default: all. - from_date: Start month YYYY-MM. Default: 12 months ago. - to_date: End month YYYY-MM. Default: current month. - include_month_end: Also include month-end rates. Default: False. - lang: Response language (de/en/fr). Default: de.
Returns: str: Markdown table with dates and CHF exchange rates per currency. Includes publication date and data source metadata.
Schema: { "cube_id": "devkum", "publishing_date": "YYYY-MM-DD HH:MM", "currencies_returned": int, "timeseries": [ { "currency": str, "type": "Monatsmittel" | "Monatsende", "unit": str, "values": [{"date": "YYYY-MM", "value": float}] } ] }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |