From 785aac7f218992dd699efd4ed2134af0d8e92458 Mon Sep 17 00:00:00 2001 From: knightmare2600 Date: Fri, 9 Oct 2026 23:04:28 +0100 Subject: [PATCH] feat: add DKK and SEK to the FX tab Adds the Danish krone and Swedish krona to the FX rate rows. Both are ECB reference-rate currencies, so they come from the existing sources unchanged: Frankfurter v1 and, if that fails, the ECB daily XML (verified live 2026-10-09: USD/DKK 6.6706, USD/SEK 9.9656). The UAE dirham (AED) was requested too but is not added: neither Frankfurter v1 nor the ECB XML publishes it. Only Frankfurter v2's blended central-bank rates carry AED (from its USD peg), and switching the FX source was out of scope for this change. A code comment and the README note why. The Base Currency picker is unchanged. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 6 ++++++ .../Public/New-StockExchangeCountdownDashboard.ps1 | 4 +++- README.md | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d10eca..d4ff345 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to PSExchangeClock will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] + +### Added + +- Danish krone (DKK) and Swedish krona (SEK) on the FX tab. The UAE dirham (AED) was considered but is not published by the ECB reference rates the FX tab uses (Frankfurter v1 and the ECB XML fallback) + ## [1.1.0] - 2026-09-28 ### Fixed diff --git a/PSExchangeClock/Public/New-StockExchangeCountdownDashboard.ps1 b/PSExchangeClock/Public/New-StockExchangeCountdownDashboard.ps1 index 8c48fcb..219f743 100644 --- a/PSExchangeClock/Public/New-StockExchangeCountdownDashboard.ps1 +++ b/PSExchangeClock/Public/New-StockExchangeCountdownDashboard.ps1 @@ -1142,7 +1142,9 @@ public static class CredManager { return $script:fxCache.Data } - $allCurrencies = @('USD', 'EUR', 'GBP', 'JPY', 'CHF', 'CAD', 'AUD', 'CNY', 'HKD', 'SGD', 'KRW', 'INR', 'BRL', 'ZAR', 'MXN') + # AED (UAE dirham) is not offered: neither Frankfurter v1 (ECB reference rates) + # nor the ECB XML fallback publishes it; only Frankfurter v2's blended rates do + $allCurrencies = @('USD', 'EUR', 'GBP', 'JPY', 'CHF', 'DKK', 'SEK', 'CAD', 'AUD', 'CNY', 'HKD', 'SGD', 'KRW', 'INR', 'BRL', 'ZAR', 'MXN') $currencies = ($allCurrencies | Where-Object { $_ -ne $BaseCurrency }) -join ',' # Try Frankfurter API first diff --git a/README.md b/README.md index 6915f89..0396021 100644 --- a/README.md +++ b/README.md @@ -137,7 +137,7 @@ Edit the `holidays.json` file in the module's `Data` directory to add market hol |------|--------|-------------| | Exchange hours | Wikipedia scrape / hardcoded fallback | N/A | | Financial news | BBC Business, CNBC Markets, and U.S. EIA RSS feeds configured in `market-news-feeds.json` | Varies by provider | -| Forex rates | [Frankfurter API](https://www.frankfurter.app/) / ECB XML | Unlimited | +| Forex rates | [Frankfurter API](https://www.frankfurter.app/) / ECB XML (ECB reference rates; includes DKK and SEK; AED is not published by the ECB, so it is not shown) | Unlimited | | Cryptocurrency | [CoinGecko API](https://www.coingecko.com/) | Unlimited | | Indices & Commodities | [Twelve Data API](https://twelvedata.com/) | 800 req/day | | Stock quotes | [Alpha Vantage API](https://www.alphavantage.co/) | 25 req/day |