# Sveriges Riksbank

> Get Sweden's central bank's official data: the krona's daily exchange rates and the rate between any two currencies, currency conversion, the policy rate, SWESTR, market interest rates, the Swedish banking day calendar and the forecasts of its Monetary Policy Reports, with a trigger for new values. No account or API key required.

App · 17 actions. Web page: https://docs.lodol.com/docs/integrations/riksbank

## Actions

### Convert currency

Convert an amount from one currency to another, the krona included, at the Riksbank's rate of a day: the latest, or that of the last banking day on or before the date you choose.

**Inputs**

- Amount (`amount`, number, required): The amount to convert, e.g. 1250.50.
- From currency (`from_currency`, text, required): The currency to convert from, e.g. EUR. SEK is the Swedish krona.
- To currency (`to_currency`, text, required): The currency to convert to, e.g. USD. SEK is the Swedish krona.
- Rate of (`date`, date): The day whose rate to use; a weekend or holiday uses the banking day before. Leave blank for the latest.

**Outputs**

- `amount` (number): The amount converted.
- `converted_amount` (number): The amount in the second currency, to 4 decimal places.
- `from_currency` (text): The currency converted from, as its code, e.g. EUR.
- `rate` (number): How many of the second currency one unit of the first buys.
- `rate_date` (text): The day of the rate used (YYYY-MM-DD).
- `summary` (text): One sentence saying what was found.
- `to_currency` (text): The currency converted to, as its code, e.g. USD.

**Example output**

```json
{
  "amount": 1000.0,
  "converted_amount": 10978.0,
  "from_currency": "EUR",
  "rate": 10.978,
  "rate_date": "2026-10-30",
  "summary": "1000 EUR is 10978 SEK at the Riksbank's rate of 10.978 on 2026-10-30.",
  "to_currency": "SEK"
}
```

### Get banking days

Check which days Swedish banks are open, up to a year ahead: each day of a period with whether it is a banking day, its week and quarter, and whether it is the month's last banking day, with the count and the first and last banking days.

**Inputs**

- From (`date_from`, date, required): The first day of the period.
- To (`date_to`, date): The last day of the period. Leave blank for just the first day.
- Banking days only (`banking_days_only`, true/false): List only the banking days. Off by default. Default: `false`.

**Outputs**

- `banking_day_count` (number): How many of them are Swedish banking days.
- `count` (number): How many days are listed.
- `date_from` (text): The first day of the period (YYYY-MM-DD).
- `date_to` (text): The last day of the period (YYYY-MM-DD).
- `day_count` (number): How many days the period has.
- `days` (list): Each day of the period, or only its banking days.
- `first_banking_day` (text): The first banking day in the period, or null.
- `last_banking_day` (text): The last banking day in the period, or null.
- `summary` (text): One sentence saying what was found.

**Example output**

```json
{
  "banking_day_count": 4,
  "count": 8,
  "date_from": "2026-12-28",
  "date_to": "2027-01-04",
  "day_count": 8,
  "days": [
    {
      "banking_day": true,
      "date": "2026-12-28",
      "last_banking_day_of_month": false,
      "quarter": 4,
      "week": 53,
      "week_year": 2026
    },
    {
      "banking_day": true,
      "date": "2026-12-29",
      "last_banking_day_of_month": false,
      "quarter": 4,
      "week": 53,
      "week_year": 2026
    },
    {
      "banking_day": true,
      "date": "2026-12-30",
      "last_banking_day_of_month": true,
      "quarter": 4,
      "week": 53,
      "week_year": 2026
    },
    {
      "banking_day": false,
      "date": "2026-12-31",
      "last_banking_day_of_month": false,
      "quarter": 4,
      "week": 53,
      "week_year": 2026
    },
    {
      "banking_day": false,
      "date": "2027-01-01",
      "last_banking_day_of_month": false,
      "quarter": 1,
      "week": 53,
      "week_year": 2026
    },
    {
      "banking_day": false,
      "date": "2027-01-02",
      "last_banking_day_of_month": false,
      "quarter": 1,
      "week": 53,
      "week_year": 2026
    },
    {
      "banking_day": false,
      "date": "2027-01-03",
      "last_banking_day_of_month": false,
      "quarter": 1,
      "week": 53,
      "week_year": 2026
    },
    {
      "banking_day": true,
      "date": "2027-01-04",
      "last_banking_day_of_month": false,
      "quarter": 1,
      "week": 1,
      "week_year": 2027
    }
  ],
  "first_banking_day": "2026-12-28",
  "last_banking_day": "2027-01-04",
  "summary": "4 of the 8 days from 2026-12-28 to 2027-01-04 are Swedish banking days, the first 2026-12-28."
}
```

### Get cross rate averages

Get the average Riksbank rate between two currencies for each week, month, quarter or year of a period, such as the euro's monthly average in US dollars.

**Inputs**

- From currency (`from_currency`, text, required): The currency to convert from, e.g. EUR. SEK is the Swedish krona.
- To currency (`to_currency`, text, required): The currency to convert to, e.g. USD. SEK is the Swedish krona.
- From (`date_from`, date, required): The first day of the period.
- To (`date_to`, date): The last day of the period. Leave blank for today.
- Average over (`period`, text): What to average over. Defaults to months. One of: `W` (Weeks), `M` (Months), `Q` (Quarters), `Y` (Years). Default: `M`.

**Outputs**

- `averages` (list): One row per period, oldest first.
- `count` (number): How many periods there are.
- `date_from` (text): The first day of the period (YYYY-MM-DD).
- `date_to` (text): The last day of the period (YYYY-MM-DD).
- `from_currency` (text): The currency converted from, as its code, e.g. EUR.
- `period` (text): What the averages are taken over: week, month, quarter or year.
- `summary` (text): One sentence saying what was found.
- `to_currency` (text): The currency converted to, as its code, e.g. USD.

**Example output**

```json
{
  "averages": [
    {
      "average": 1.17398,
      "number": 1,
      "period": "2026-01",
      "year": 2026
    },
    {
      "average": 1.18239,
      "number": 2,
      "period": "2026-02",
      "year": 2026
    },
    {
      "average": 1.15583,
      "number": 3,
      "period": "2026-03",
      "year": 2026
    }
  ],
  "count": 3,
  "date_from": "2026-01-01",
  "date_to": "2026-10-31",
  "from_currency": "EUR",
  "period": "month",
  "summary": "EUR/USD averaged over 3 months from 2026-01-01 to 2026-10-31.",
  "to_currency": "USD"
}
```

### Get cross rates

Get the Riksbank's rate between two currencies, such as the euro in US dollars, for each banking day of a period: how many of the second currency one unit of the first buys. The krona is SEK.

**Inputs**

- From currency (`from_currency`, text, required): The currency to convert from, e.g. EUR. SEK is the Swedish krona.
- To currency (`to_currency`, text, required): The currency to convert to, e.g. USD. SEK is the Swedish krona.
- From (`date_from`, date, required): The first day of the period.
- To (`date_to`, date): The last day of the period. Leave blank for today.

**Outputs**

- `average` (number): The average rate in the period, or null.
- `count` (number): How many daily rates there are in the period.
- `date_from` (text): The first day of the period (YYYY-MM-DD).
- `date_to` (text): The last day of the period (YYYY-MM-DD).
- `from_currency` (text): The currency converted from, as its code, e.g. EUR.
- `highest` (number): The highest rate in the period, or null.
- `latest_date` (text): The day of the last rate in the period, or null.
- `latest_rate` (number): The last rate in the period, or null.
- `lowest` (number): The lowest rate in the period, or null.
- `rates` (list): Every banking day's rate, oldest first.
- `summary` (text): One sentence saying what was found.
- `to_currency` (text): The currency converted to, as its code, e.g. USD.

**Example output**

```json
{
  "average": 1.11546,
  "count": 5,
  "date_from": "2026-10-26",
  "date_to": "2026-10-30",
  "from_currency": "EUR",
  "highest": 1.1188,
  "latest_date": "2026-10-30",
  "latest_rate": 1.1172,
  "lowest": 1.113,
  "rates": [
    {
      "date": "2026-10-26",
      "rate": 1.1188
    },
    {
      "date": "2026-10-27",
      "rate": 1.115
    },
    {
      "date": "2026-10-28",
      "rate": 1.1133
    },
    {
      "date": "2026-10-29",
      "rate": 1.113
    },
    {
      "date": "2026-10-30",
      "rate": 1.1172
    }
  ],
  "summary": "EUR/USD: 5 daily rates from 2026-10-26 to 2026-10-30; on 2026-10-30 1 EUR was 1.1172 USD.",
  "to_currency": "USD"
}
```

### Get forecasts

Get the Riksbank's forecast of GDP, inflation, unemployment, the policy rate or another series from a Monetary Policy Report, with the outcomes before it, and which values are forecasts.

**Inputs**

- Series (`series`, text, required): What to get the forecast of, e.g. CPIF, annual percentage change.
- Report (`policy_round`, text): The Monetary Policy Report, e.g. 2026:3. Leave blank for the latest.
- Forecast only (`forecasts_only`, true/false): List only the forecast, without the outcomes before it. Off by default. Default: `false`.

**Outputs**

- `count` (number): How many values are listed.
- `description` (text): What the series measures, e.g. CPIF.
- `forecast_count` (number): How many of the report's values are forecasts.
- `forecast_cutoff_date` (text): The last day with an outcome; the values after it are the forecast.
- `observations` (list): The outcomes and the forecast after them, oldest first.
- `policy_round` (text): The Monetary Policy Report, as year and number, e.g. 2026:3.
- `round_end_date` (text): The day the report's policy round ended (YYYY-MM-DD).
- `series_id` (text): The Riksbank's id for the series, e.g. SEMCPIFNAYNA for CPIF.
- `summary` (text): One sentence saying what was found.
- `unit` (text): The unit of the values, e.g. Annual percentage change.

**Example output**

```json
{
  "count": 5,
  "description": "Policy Rate",
  "forecast_count": 3,
  "forecast_cutoff_date": "2026-06-30",
  "observations": [
    {
      "date": "2026-03-31",
      "forecast": false,
      "value": 1.75
    },
    {
      "date": "2026-06-30",
      "forecast": false,
      "value": 1.75
    },
    {
      "date": "2026-09-30",
      "forecast": true,
      "value": 1.75
    },
    {
      "date": "2026-12-31",
      "forecast": true,
      "value": 1.85
    },
    {
      "date": "2027-03-31",
      "forecast": true,
      "value": 2.07
    }
  ],
  "policy_round": "2026:3",
  "round_end_date": "2026-09-24",
  "series_id": "SEQRATENAYNA",
  "summary": "The Monetary Policy Report 2026:3 forecasts Policy Rate (Per cent) for 3 periods after 2026-06-30, to 2027-03-31: 2.07.",
  "unit": "Per cent"
}
```

### Get group observations

Get the values of every series in a group over a period of up to a year, such as every exchange rate against the krona each banking day of a month.

**Inputs**

- Group (`group`, text, required): The group of series, e.g. Currencies against Swedish kronor or Riksbank key interest rates.
- From (`date_from`, date, required): The first day of the period.
- To (`date_to`, date): The last day of the period. Leave blank for today.

**Outputs**

- `count` (number): How many values there are.
- `date_from` (text): The first day of the period (YYYY-MM-DD).
- `date_to` (text): The last day of the period (YYYY-MM-DD).
- `group_id` (number): The Riksbank's number for the group, e.g. 130.
- `group_name` (text): The group's name, e.g. Currencies against Swedish kronor.
- `observations` (list): Every value of every series, by series and then by day.
- `series_count` (number): How many series have values in the period.
- `summary` (text): One sentence saying what was found.

**Example output**

```json
{
  "count": 4,
  "date_from": "2026-10-26",
  "date_to": "2026-10-30",
  "group_id": 130,
  "group_name": "Currencies against Swedish kronor",
  "observations": [
    {
      "date": "2026-10-29",
      "name": "EUR Euroland, euro",
      "series_id": "SEKEURPMI",
      "value": 10.9995
    },
    {
      "date": "2026-10-30",
      "name": "EUR Euroland, euro",
      "series_id": "SEKEURPMI",
      "value": 10.978
    },
    {
      "date": "2026-10-29",
      "name": "USD US, dollar",
      "series_id": "SEKUSDPMI",
      "value": 9.88275
    },
    {
      "date": "2026-10-30",
      "name": "USD US, dollar",
      "series_id": "SEKUSDPMI",
      "value": 9.82635
    }
  ],
  "series_count": 2,
  "summary": "4 values of 2 series in Exchange rates > Currencies against Swedish kronor from 2026-10-26 to 2026-10-30."
}
```

### Get group period averages

Get the average, lowest, highest and last value of every series in a group for each week, month, quarter or year of a period, such as every currency's monthly average rate. Weeks and months cover at most a year.

**Inputs**

- Group (`group`, text, required): The group of series, e.g. Currencies against Swedish kronor or Riksbank key interest rates.
- From (`date_from`, date, required): The first day of the period.
- To (`date_to`, date): The last day of the period. Leave blank for today.
- Average over (`period`, text): What to average over. Defaults to months. One of: `W` (Weeks), `M` (Months), `Q` (Quarters), `Y` (Years). Default: `M`.

**Outputs**

- `averages` (list): One row per series and period, by series and then oldest first.
- `count` (number): How many rows there are.
- `date_from` (text): The first day of the period (YYYY-MM-DD).
- `date_to` (text): The last day of the period (YYYY-MM-DD).
- `group_id` (number): The Riksbank's number for the group, e.g. 130.
- `group_name` (text): The group's name, e.g. Currencies against Swedish kronor.
- `period` (text): What the averages are taken over: week, month, quarter or year.
- `series_count` (number): How many series have averages.
- `summary` (text): One sentence saying what was found.

**Example output**

```json
{
  "averages": [
    {
      "average": 11.23287,
      "from": "2026-09-01",
      "highest": 11.331,
      "last": 11.331,
      "lowest": 11.1005,
      "name": "EUR Euroland, euro",
      "number": 9,
      "observation_count": 22,
      "period": "2026-09",
      "series_id": "SEKEURPMI",
      "to": "2026-09-30",
      "year": 2026
    },
    {
      "average": 11.15301,
      "from": "2026-10-01",
      "highest": 11.331,
      "last": 10.978,
      "lowest": 10.978,
      "name": "EUR Euroland, euro",
      "number": 10,
      "observation_count": 22,
      "period": "2026-10",
      "series_id": "SEKEURPMI",
      "to": "2026-10-30",
      "year": 2026
    },
    {
      "average": 9.75764,
      "from": "2026-09-01",
      "highest": 9.97886,
      "last": 9.97886,
      "lowest": 9.55128,
      "name": "USD US, dollar",
      "number": 9,
      "observation_count": 22,
      "period": "2026-09",
      "series_id": "SEKUSDPMI",
      "to": "2026-09-30",
      "year": 2026
    },
    {
      "average": 9.95659,
      "from": "2026-10-01",
      "highest": 10.05791,
      "last": 9.82635,
      "lowest": 9.82635,
      "name": "USD US, dollar",
      "number": 10,
      "observation_count": 22,
      "period": "2026-10",
      "series_id": "SEKUSDPMI",
      "to": "2026-10-30",
      "year": 2026
    }
  ],
  "count": 4,
  "date_from": "2026-08-01",
  "date_to": "2026-10-31",
  "group_id": 130,
  "group_name": "Currencies against Swedish kronor",
  "period": "month",
  "series_count": 2,
  "summary": "Averages per month of 2 series in Exchange rates > Currencies against Swedish kronor from 2026-08-01 to 2026-10-31: 4 rows."
}
```

### Get latest group observations

Get the most recent value of every series in a group, such as today's rate for every currency against the krona, or the Riksbank's key interest rates.

**Inputs**

- Group (`group`, text, required): The group of series, e.g. Currencies against Swedish kronor or Riksbank key interest rates.
- Include discontinued series (`include_discontinued`, true/false): Also list series the Riksbank no longer publishes, such as the Deutsche mark. Off by default. Default: `false`.

**Outputs**

- `count` (number): How many series are listed.
- `group_id` (number): The Riksbank's number for the group, e.g. 130.
- `group_name` (text): The group's name, e.g. Currencies against Swedish kronor.
- `latest_date` (text): The most recent day among the values (YYYY-MM-DD).
- `summary` (text): One sentence saying what was found.
- `values` (list): The latest value of each series in the group.

**Example output**

```json
{
  "count": 3,
  "group_id": 130,
  "group_name": "Currencies against Swedish kronor",
  "latest_date": "2026-11-02",
  "summary": "The latest values of 3 series in Exchange rates > Currencies against Swedish kronor, up to 2026-11-02.",
  "values": [
    {
      "currency": "SEK",
      "date": "2026-11-02",
      "name": "SEK Sweden, kronor",
      "series_id": "SEKETT",
      "value": 1.0
    },
    {
      "currency": "EUR",
      "date": "2026-11-02",
      "name": "EUR Euroland, euro",
      "series_id": "SEKEURPMI",
      "value": 10.9475
    },
    {
      "currency": "USD",
      "date": "2026-11-02",
      "name": "USD US, dollar",
      "series_id": "SEKUSDPMI",
      "value": 9.76061
    }
  ]
}
```

### Get latest observation

Get a Riksbank series' most recent value and its date, such as today's euro rate or the policy rate.

**Inputs**

- Series (`series`, text, required): The series, e.g. Policy rate (SECBREPOEFF) or EUR Euroland, euro (SEKEURPMI).

**Outputs**

- `date` (text): The day of the latest value (YYYY-MM-DD).
- `discontinued` (true/false): True when the Riksbank no longer publishes the series.
- `name` (text): The series' name, e.g. Policy rate or EUR Euroland, euro.
- `series_id` (text): The Riksbank's id for the series, e.g. SECBREPOEFF for the policy rate.
- `summary` (text): One sentence saying what was found.
- `value` (number): The latest value: a rate in per cent, or kronor for one unit.

**Example output**

```json
{
  "date": "2026-11-02",
  "discontinued": false,
  "name": "Policy rate",
  "series_id": "SECBREPOEFF",
  "summary": "Policy rate (SECBREPOEFF) was 1.75 on 2026-11-02.",
  "value": 1.75
}
```

### Get observations

Get a Riksbank series' values over a period, such as the policy rate or the euro in kronor each banking day, with the latest, the average, the lowest and the highest.

**Inputs**

- Series (`series`, text, required): The series, e.g. Policy rate (SECBREPOEFF) or EUR Euroland, euro (SEKEURPMI).
- From (`date_from`, date, required): The first day of the period.
- To (`date_to`, date): The last day of the period. Leave blank for today.

**Outputs**

- `average` (number): The average of the values in the period, or null.
- `count` (number): How many values there are in the period.
- `date_from` (text): The first day of the period (YYYY-MM-DD).
- `date_to` (text): The last day of the period (YYYY-MM-DD).
- `highest` (number): The highest value in the period, or null.
- `latest_date` (text): The day of the last value in the period, or null.
- `latest_value` (number): The last value in the period, or null.
- `lowest` (number): The lowest value in the period, or null.
- `name` (text): The series' name, e.g. Policy rate or EUR Euroland, euro.
- `observations` (list): Every value in the period, oldest first.
- `series_id` (text): The Riksbank's id for the series, e.g. SECBREPOEFF for the policy rate.
- `summary` (text): One sentence saying what was found.

**Example output**

```json
{
  "average": 2.204545,
  "count": 11,
  "date_from": "2025-01-01",
  "date_to": "2026-11-02",
  "highest": 2.75,
  "latest_date": "2026-11-02",
  "latest_value": 1.75,
  "lowest": 1.75,
  "name": "Policy rate",
  "observations": [
    {
      "date": "2025-01-03",
      "value": 2.75
    },
    {
      "date": "2025-01-07",
      "value": 2.75
    },
    {
      "date": "2025-01-08",
      "value": 2.5
    },
    {
      "date": "2025-02-04",
      "value": 2.5
    },
    {
      "date": "2025-02-05",
      "value": 2.25
    },
    {
      "date": "2025-06-24",
      "value": 2.25
    },
    {
      "date": "2025-06-25",
      "value": 2.0
    },
    {
      "date": "2025-09-30",
      "value": 2.0
    },
    {
      "date": "2025-10-01",
      "value": 1.75
    },
    {
      "date": "2026-10-30",
      "value": 1.75
    },
    {
      "date": "2026-11-02",
      "value": 1.75
    }
  ],
  "series_id": "SECBREPOEFF",
  "summary": "Policy rate (SECBREPOEFF): 11 values from 2025-01-01 to 2026-11-02, the latest 1.75 on 2026-11-02."
}
```

### Get period averages

Get a Riksbank series' average, lowest, highest and last value for each week, month, quarter or year of a period, such as the euro's monthly average rate.

**Inputs**

- Series (`series`, text, required): The series, e.g. Policy rate (SECBREPOEFF) or EUR Euroland, euro (SEKEURPMI).
- From (`date_from`, date, required): The first day of the period.
- To (`date_to`, date): The last day of the period. Leave blank for today.
- Average over (`period`, text): What to average over. Defaults to months. One of: `W` (Weeks), `M` (Months), `Q` (Quarters), `Y` (Years). Default: `M`.

**Outputs**

- `averages` (list): One row per period, oldest first.
- `count` (number): How many periods there are.
- `date_from` (text): The first day of the period (YYYY-MM-DD).
- `date_to` (text): The last day of the period (YYYY-MM-DD).
- `name` (text): The series' name, e.g. Policy rate or EUR Euroland, euro.
- `period` (text): What the averages are taken over: week, month, quarter or year.
- `series_id` (text): The Riksbank's id for the series, e.g. SECBREPOEFF for the policy rate.
- `summary` (text): One sentence saying what was found.

**Example output**

```json
{
  "averages": [
    {
      "average": 10.67732,
      "from": "2026-01-02",
      "highest": 10.8085,
      "last": 10.5205,
      "lowest": 10.5205,
      "number": 1,
      "observation_count": 20,
      "period": "2026-01",
      "to": "2026-01-30",
      "year": 2026
    },
    {
      "average": 10.63508,
      "from": "2026-02-02",
      "highest": 10.6955,
      "last": 10.6643,
      "lowest": 10.5485,
      "number": 2,
      "observation_count": 20,
      "period": "2026-02",
      "to": "2026-02-27",
      "year": 2026
    },
    {
      "average": 10.76143,
      "from": "2026-03-02",
      "highest": 10.943,
      "last": 10.943,
      "lowest": 10.606,
      "number": 3,
      "observation_count": 22,
      "period": "2026-03",
      "to": "2026-03-31",
      "year": 2026
    }
  ],
  "count": 3,
  "date_from": "2026-01-01",
  "date_to": "2026-10-31",
  "name": "EUR Euroland, euro",
  "period": "month",
  "series_id": "SEKEURPMI",
  "summary": "EUR Euroland, euro (SEKEURPMI) averaged over 3 months from 2026-01-01 to 2026-10-31."
}
```

### Get policy rate

Get the Riksbank's policy rate now, the day it last changed and from what, and every change since a date.

**Inputs**

- Changes since (`since`, date): List the changes from this day on. Leave blank for the last three years.

**Outputs**

- `change` (number): The last change, in percentage points.
- `change_count` (number): How many times the rate changed since then.
- `changed_on` (text): The day the rate last changed (YYYY-MM-DD), or null when it hasn't since the start.
- `changes` (list): Every change since then, newest first.
- `date` (text): The day of that value (YYYY-MM-DD).
- `previous_rate` (number): The rate before its last change, in per cent.
- `rate` (number): The policy rate now, in per cent.
- `since` (text): The day the changes are listed from (YYYY-MM-DD).
- `summary` (text): One sentence saying what was found.

**Example output**

```json
{
  "change": -0.25,
  "change_count": 4,
  "changed_on": "2025-10-01",
  "changes": [
    {
      "change": -0.25,
      "date": "2025-10-01",
      "previous_rate": 2.0,
      "rate": 1.75
    },
    {
      "change": -0.25,
      "date": "2025-06-25",
      "previous_rate": 2.25,
      "rate": 2.0
    },
    {
      "change": -0.25,
      "date": "2025-02-05",
      "previous_rate": 2.5,
      "rate": 2.25
    },
    {
      "change": -0.25,
      "date": "2025-01-08",
      "previous_rate": 2.75,
      "rate": 2.5
    }
  ],
  "date": "2026-11-02",
  "previous_rate": 2.0,
  "rate": 1.75,
  "since": "2025-01-01",
  "summary": "The Riksbank's policy rate is 1.75% (on 2026-11-02), since 2025-10-01, when it changed from 2.0%. 4 changes since 2025-01-01."
}
```

### Get SWESTR

Get SWESTR, the krona's overnight reference rate the Riksbank publishes each banking day, with the volume and number of loans behind it: the latest, or each day of a period.

**Inputs**

- From (`date_from`, date): The first day of the period. Leave both dates blank for the latest.
- To (`date_to`, date): The last day of the period. Leave blank for today.

**Outputs**

- `count` (number): How many rates are listed.
- `date_from` (text): The first day of the period (YYYY-MM-DD), or null for the latest.
- `date_to` (text): The last day of the period (YYYY-MM-DD), or null for the latest.
- `latest_date` (text): The day of the most recent rate listed.
- `latest_rate` (number): The most recent rate listed, in per cent.
- `rates` (list): Each banking day's SWESTR, oldest first.
- `summary` (text): One sentence saying what was found.

**Example output**

```json
{
  "count": 1,
  "date_from": null,
  "date_to": null,
  "latest_date": "2026-10-30",
  "latest_rate": 1.646,
  "rates": [
    {
      "agent_count": 5,
      "alternative_calculation": false,
      "alternative_calculation_reason": null,
      "date": "2026-10-30",
      "percentile_12_5": 1.6,
      "percentile_87_5": 1.7,
      "published_at": "2026-11-02T08:00:00Z",
      "rate": 1.646,
      "republished": false,
      "transaction_count": 189,
      "volume": 79303.0
    }
  ],
  "summary": "SWESTR was 1.646% on 2026-10-30."
}
```

### Get SWESTR average

Get SWESTR compounded over 1 week, or 1, 2, 3 or 6 months, the averages contracts use as reference rates: the latest, or each day of a period.

**Inputs**

- Term (`term`, text): The term to compound SWESTR over. Defaults to 1 month. One of: `1W` (1 week), `1M` (1 month), `2M` (2 months), `3M` (3 months), `6M` (6 months). Default: `1M`.
- From (`date_from`, date): The first day of the period. Leave both dates blank for the latest.
- To (`date_to`, date): The last day of the period. Leave blank for today.

**Outputs**

- `average_id` (text): The Riksbank's id for the average, e.g. SWESTRAVG1M.
- `averages` (list): Each day's compounded average, oldest first.
- `count` (number): How many values are listed.
- `date_from` (text): The first day of the period (YYYY-MM-DD), or null for the latest.
- `date_to` (text): The last day of the period (YYYY-MM-DD), or null for the latest.
- `latest_date` (text): The day of the most recent value listed.
- `latest_rate` (number): The most recent value listed, in per cent.
- `summary` (text): One sentence saying what was found.
- `term` (text): The term compounded over: 1W, 1M, 2M, 3M or 6M.

**Example output**

```json
{
  "average_id": "SWESTRAVG1M",
  "averages": [
    {
      "date": "2026-11-02",
      "published_at": "2026-11-02T08:05:00Z",
      "rate": 1.64932,
      "republished": false,
      "start_date": "2026-10-02"
    }
  ],
  "count": 1,
  "date_from": null,
  "date_to": null,
  "latest_date": "2026-11-02",
  "latest_rate": 1.64932,
  "summary": "SWESTR compounded over 1 month was 1.64932% on 2026-11-02.",
  "term": "1M"
}
```

### Get SWESTR index

Get the SWESTR index, which compounds SWESTR day by day, for working out interest between any two days: the latest, or each day of a period.

**Inputs**

- From (`date_from`, date): The first day of the period. Leave both dates blank for the latest.
- To (`date_to`, date): The last day of the period. Leave blank for today.

**Outputs**

- `count` (number): How many values are listed.
- `date_from` (text): The first day of the period (YYYY-MM-DD), or null for the latest.
- `date_to` (text): The last day of the period (YYYY-MM-DD), or null for the latest.
- `latest_date` (text): The day of the most recent value listed.
- `latest_value` (number): The most recent value listed.
- `summary` (text): One sentence saying what was found.
- `values` (list): Each day's index value, oldest first.

**Example output**

```json
{
  "count": 1,
  "date_from": null,
  "date_to": null,
  "latest_date": "2026-11-02",
  "latest_value": 111.21981441,
  "summary": "The SWESTR index was 111.21981441 on 2026-11-02.",
  "values": [
    {
      "date": "2026-11-02",
      "published_at": "2026-11-02T08:05:00Z",
      "republished": false,
      "value": 111.21981441
    }
  ]
}
```

### List groups

List the groups the Riksbank files its series in, such as Riksbank key interest rates or Currencies against Swedish kronor, each with its number, where it sits and how many series it holds.

**Inputs**: None.

**Outputs**

- `count` (number): How many groups there are.
- `groups` (list): Every group, each followed by the groups in it.
- `summary` (text): One sentence saying what was found.

**Example output**

```json
{
  "count": 7,
  "groups": [
    {
      "description": null,
      "group_id": 1,
      "name": "Interest rates and exchange rates",
      "parent_id": null,
      "path": "Interest rates and exchange rates",
      "series_count": 0
    },
    {
      "description": "An exchange rate is the price of a currency expressed in units of another currency.",
      "group_id": 11,
      "name": "Exchange rates",
      "parent_id": 1,
      "path": "Exchange rates",
      "series_count": 0
    },
    {
      "description": "Observations are published daily at 16.15 p.m.",
      "group_id": 130,
      "name": "Currencies against Swedish kronor",
      "parent_id": 11,
      "path": "Exchange rates > Currencies against Swedish kronor",
      "series_count": 4
    },
    {
      "description": "The Riksbank's key interest rates are those the bank sets for monetary policy purposes. They are the deposit rate, the lending rate and the repo rate. The repo rate is the most important. (The marginal rate was the Riksbank's key interest rate from December 1985 to the end of May 1994). As well as the monetary policy key rates, the Riksbank also sets the reference rate (previously known as the discount rate), which is mentioned in the Interest Act, for instance.",
      "group_id": 137,
      "name": "Riksbank interest rates",
      "parent_id": 1,
      "path": "Riksbank interest rates",
      "series_count": 0
    },
    {
      "description": "The Riksbank's key interest rates are those the bank sets for monetary policy purposes. They are the deposit rate, the lending rate and the repo rate. The most important rate is the repo rate. (The marginal rate was the Riksbank's key interest rate from December 1985 to the end of May 1994).",
      "group_id": 2,
      "name": "Riksbank key interest rates",
      "parent_id": 137,
      "path": "Riksbank interest rates > Riksbank key interest rates",
      "series_count": 2
    },
    {
      "description": "A market rate is the rate that agents are prepared to pay for different types of credit. It is set according to supply and demand.",
      "group_id": 4,
      "name": "Swedish Market (based) rates",
      "parent_id": 1,
      "path": "Swedish Market (based) rates",
      "series_count": 0
    },
    {
      "description": "STIBOR stands for Stockholm Interbank Offered Rate, the interest rate banks pay when borrowing money from one another. STIBOR Fixing is the average (with the exception of the highest and lowest quotes) of the interest rates listed at 11:05 a.m.",
      "group_id": 5,
      "name": "STIBOR (Stockholm interbank offered rate)",
      "parent_id": 4,
      "path": "Swedish Market (based) rates > STIBOR (Stockholm interbank offered rate)",
      "series_count": 1
    }
  ],
  "summary": "The Riksbank files its series in 7 groups, 3 of which hold series."
}
```

### List series

List the Riksbank's interest rate and exchange rate series, with each one's id, name, description, group and the dates of its first and latest values. Optionally only one group's, or those whose name or description contains some text.

**Inputs**

- Group (`group`, text): Only the series in this group. Leave blank for all.
- Name contains (`text`, text): Only series whose id, name or description contains this text, e.g. mortgage or STIBOR.
- Include discontinued series (`include_discontinued`, true/false): Also list series the Riksbank no longer publishes, such as the Deutsche mark. Off by default. Default: `false`.

**Outputs**

- `count` (number): How many series were found.
- `group_id` (number): The group searched, or null for every group.
- `series` (list): The series found, in the Riksbank's order.
- `summary` (text): One sentence saying what was found.

**Example output**

```json
{
  "count": 2,
  "group_id": 2,
  "series": [
    {
      "currency": null,
      "description": "The policy rate is the interest rate at which the banks can borrow or deposit in the Riksbank over a 7-day period. The policy rate is the Riksbank's most important key rate. The policy rate was called The repo rate until June 8, 2022.",
      "discontinued": false,
      "first_date": "1994-06-01",
      "group_id": 2,
      "last_date": "2026-11-02",
      "name": "Policy rate",
      "series_id": "SECBREPOEFF",
      "short_name": "Policy rate",
      "source": "Sveriges Riksbank"
    },
    {
      "currency": null,
      "description": "The deposit rate is the rate of interest banks receive when they deposit funds in their accounts at the Riksbank overnight and is always 0.75 percentage points lower than the policy rate. The deposit rate is the floor of what is known as the interest rate corridor and is one of the Riksbank's three key rates.",
      "discontinued": false,
      "first_date": "1994-06-01",
      "group_id": 2,
      "last_date": "2026-11-02",
      "name": "Deposit rate",
      "series_id": "SECBDEPOEFF",
      "short_name": "Deposit rate",
      "source": "Sveriges Riksbank"
    }
  ],
  "summary": "Found 2 Riksbank series in Riksbank interest rates > Riksbank key interest rates."
}
```
