SEK exchange rate
fetch_fxFetch Riksbanken's daily mid-rate to find the value of 1 unit of a currency in Swedish kronor (SEK) using its 3-letter ISO 4217 code.
Instructions
Fetch the latest exchange rate from some currency to SEK using the API from Riksbanken.
Returns Riksbanken's daily mid-rate (PMI) as the price in SEK of 1 unit of the currency. The rate is published on banking days, so the date may be earlier than today.
Args: currency: 3-letter ISO 4217 currency code (e.g. USD, EUR)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currency | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Date the rate was published by Riksbanken | |
| currency | Yes | ISO 4217 code of the quoted currency | |
| sek_per_unit | Yes | Price in SEK of 1 unit of the currency |