Old SOAP API
The Riksbank has launched a new REST API for interest rates and exchange rates. Here you will find information on the outgoing SOAP API which will be discontinued on 27 May 2024.
THE SOAP API WILL CLOSE
The Riksbank's old SOAP API for interest rates and exchange rates is available for a transitional period to give users time to update their existing integrations. On 27 May 2024, the SOAP API will close. When it closes on 27 May 2024, the SOAP API will stop working and the new REST API must be used to continue to be able to retrieve interest rates and exchange rates automatically via API from the Riksbank.
Why is the Riksbank changing its API from SOAP to REST?
The Riksbank is modernising and changing its technical platform for the underlying API. In connection with this, we are also changing to a REST API that is more modern, easier to use and more future-proof. The same data will be exposed as before.
What do I need to do if I currently have an integration with the Riksbank’s old SOAP API?
You need to undertake a transition to the new REST API as the SOAP API will close and will therefore stop functioning on 27 May 2024.
On the page “FAQ about the REST API for interest rates and exchange rates”, you will find information on how to use the new API.
Information about the old SOAP API
Information on change affecting “getAnnualAverageExchangeRates”
After 30 November 2020, it will not be possible to obtain monthly or annual averages for the current period using the method “getMonthlyAverageExchangeRates”
The Riksbank has adjusted getAnnualAverageExchangeRates. Previously, it was possible to obtain a mean value for a period that had not ended, for example it was possible to obtain annual data on any day of the year. The reason for the adjustment is that API users could not know when a period or a result was established. Consequently, monthly and annual averages for the current period are now calculated on the final banking day of the month at 12.05, which is to say after publication for the day.
The Riksbank’s web service for interest rates and exchange rates has a number of methods you can invoke to search interest rates and exchange rates, cross rates, series names, various aggregates per period (month, quarter, year) and so on. For each period, minimum, maximum, average and ultimo (final banking day of the month) values can also be retrieved.
The WSDL file can be reached via the address:
Complete technical documentation for the Riksbank’s web service:
To retrieve series for one period, follow these instructions:
- Find the series for which you would like retrieve observations in the list Series for the web service and note the group ID and series ID.
Series for the web service
- Invoke the web service with the selected group ID and series ID, as well as other parameters; see the link: https://swea.riksbank.se/sweaWS/docs/api/call/getInterestAndExchangeRates.htm
If you have questions on the Riksbank’s API for interest rates and exchange rates, email: API@riksbank.se
DISCLAIMERS and RESERVATION
Exchange rates are indicative only and are published by the Riksbank for information purposes. They should therefore not be used for transactional purposes.
The Riksbank disclaims liability for any errors or changes in values afterwards and for any interruptions in the functioning of the website and the API that may affect access to the statistics.
The Riksbank reserves the right to make updates/changes to the website and the API that may affect the downloading of statistics.