A WPF desktop dashboard for watching global stock exchange hours, free market data, financial news, delayed history and an infrastructure map, built entirely in PowerShell.
PSExchangeClock is an informational, hobby project maintained by one person. Market values are delayed or end-of-day data from free public sources. Don't use them for trading decisions.
- Countdown cards for 20 major exchanges, colour-coded for open, closing soon, closed, pre-market and holiday. Lunch breaks are tracked for Tokyo, Shanghai and Hong Kong.
- World map with clickable, clustered exchange markers.
- Map styles: Earth at Night, Blue Marble, Vector Dark and Minimal.
- Views: flat map or a rotating globe, both with zoom and pan.
- Map overlays from the toolbar:
- Markets: exchange locations and global financial centres.
- Geography: day/night terminator, approximate UTC bands, political borders and time-zone boundaries.
- Live events: earthquakes (USGS), volcanoes (Smithsonian GVP), and natural events (GDACS and NASA EONET). Conflict zones (UCDP) also appear here, controlled by the source register.
- Infrastructure: submarine cables, power plants by fuel type, and U.S. datacentres (IM3 open data).
- Market Data panel. Drag its edge to resize it, or collapse it.
- News: 15 free public feeds, with source and category filters.
- FX Rates: ECB reference rates.
- Crypto: the top 10 coins.
- Indices, Commodities and Stocks.
- World clocks for the base time zones and every active exchange.
- All Exchanges: a sortable, filterable grid. Choose which exchanges to show.
- Market Overview: regional session states, with a legend and accessible grid navigation.
- Historical Data: delayed daily charts from 1 day to 5 years.
- Instruments: 8 ECB currency pairs and 9 FRED series (S&P 500, NASDAQ, Dow, Nikkei 225, VIX, US 10Y yield, WTI and Brent crude, natural gas).
- Charts have axes, a legend, a click crosshair, zoom and pan, and a local cache.
- Settings: notification thresholds, always-on-top, currencies, API keys with Get a free key links, and the key-storage backend.
- Every external source is listed in a source-rights register (
Data/data-source-register.json). A source is shown only when its terms are approved. - Rate limits are respected, and each panel keeps its last good data.
- Failures are shown in the panel rather than crashing the dashboard.
- Exchange hours work offline.
Install-Module PSExchangeClock -Scope CurrentUser
Start-PSExchangeClockOr use the full function name:
New-StockExchangeCountdownDashboard- PowerShell 7+ on Windows (WPF requires Windows)
- .NET Framework 4.5+ (for WPF assemblies)
- Internet connection for news, market data and live map layers (exchange hours work offline)
The dashboard works without keys. With no keys you still get exchange hours, the map and overlays, news, ECB FX rates and ECB history. Free keys unlock more data:
| Service | Get a key | Unlocks |
|---|---|---|
| FRED (St. Louis Fed) | fred.stlouisfed.org | Indices (8 series), commodities (10 series), FRED history |
| Alpha Vantage | alphavantage.co | Stock quotes, index ETF proxies, extra FX pairs (AED, SAR, TWD) |
| CoinMarketCap | coinmarketcap.com/api | Top 10 cryptocurrencies |
Enter keys in the Settings tab. Each key field has a Get a free key link next to it.
Keys are stored in Windows Credential Manager by default. You can switch to SecretManagement or DPAPI-protected CliXml instead. Keys are never written to the preferences JSON.
Install-Module PSExchangeClock -Scope CurrentUsergit clone https://github.com/PowerShellYoungTeam/PSExchangeClock.git
Import-Module .\PSExchangeClock\PSExchangeClockUser preferences are stored in %APPDATA%\PSExchangeClock\user-preferences.json and are created automatically on first run. You can also change settings via the Settings tab in the dashboard.
| Setting | Description | Default |
|---|---|---|
ActiveExchanges |
Array of exchange codes to display | All 20 exchanges |
NotifyThresholds |
Minutes before close to show notifications | [30, 15, 5] |
AlwaysOnTop |
Keep dashboard window above other windows | false |
CommodityBaseCurrency |
Currency for commodity price display | EUR |
SecretsBackend |
Where API keys are stored | CredentialManager |
In the Stocks market-data tab, enter a symbol and select Add, or use a quick-pick button. Added stocks stay in the current list when switching tabs. Clear empties the current list without deleting saved presets.
Enter a name and select Save to store the current list. Choose a saved preset
and select Load to replace the current list, or Set default to load it at
dashboard startup. Changes to a list are not saved to its preset until Save
is selected again. Presets contain symbols, not holdings or transactions, and are
stored as unencrypted JSON in %APPDATA%\PSExchangeClock\stock-watchlists.json;
API keys are not stored there.
Quotes are fetched when the Stocks tab is open. Loading a preset may use one Alpha Vantage request per uncached symbol; cached quotes are refreshed after 30 minutes while the tab is open, so provider quotas apply. Cached quotes and unavailable results display their retrieval time or failure state. Provider quota notices and request errors are shown separately. Stock quote requests are spaced at least 1.1 seconds apart; a provider limit pauses further requests while retaining cached quotes. Wait for the provider allowance to reset, then add a symbol again to retry. Restarting the dashboard does not reset provider quotas. If a quote is unavailable, use Alpha Vantage's ticker search to check its symbol and exchange; international suffixes differ between providers, and the search itself uses an API request.
FX, crypto, index, and commodity requests run in bounded background workers. Each panel shows refresh progress, source, last-successful time, cached data, and failure or partial-result status. Currency changes cancel obsolete work; late results cannot overwrite the new selection. Failed attempts wait at least one minute before automatic retry, while retaining same-currency cached values.
Refresh intervals respect free-tier limits:
| Source | Refresh | Notes |
|---|---|---|
| ECB reference rates | Daily data, cached per session | No key |
| FRED indices and commodities | At most hourly | Daily close values |
| CoinMarketCap crypto | At most every 15 minutes | Top 10 coins |
| Alpha Vantage supplements (ETF proxies, extra FX) | Once a day | Cached in AppData so restarts don't use the quota again |
If commodity currency conversion is unavailable, the panel shows USD prices and explains why. It does not relabel USD prices as another currency.
Choose an instrument and a range (1 day to 5 years, or a custom range), then press Refresh.
- ECB pairs: no key needed.
- FRED series: need a FRED key.
Results are cached under %APPDATA%\PSExchangeClock\historical-cache, so a failed refresh still shows the last good series.
Click the line to show a crosshair with the exact date and value. Use +, -, <, > and Reset to zoom and pan.
News feeds refresh in a background runspace. The panel shows loading/refreshing status while countdowns and navigation remain usable. Existing stories retain their last-successful timestamp and are labelled cached until a refresh succeeds; partial results identify unavailable sources. Changing news filters or repeatedly opening the tab does not start duplicate requests. After a failed attempt, automatic refresh waits five minutes; Refresh news retries explicitly. Closing the dashboard cancels a pending news refresh.
Earthquakes, volcanoes, natural events, and missing NASA map images load in bounded background workers. Only selected live layers are fetched; rotation, resizing, and repeated redraws do not duplicate pending requests. Live layers refresh at most every five minutes, including automatic retries after failure.
The map shows source, refresh state, last-successful time, cache age, and failures. Live-layer caches last for the current dashboard session. Failed sources retain their last-successful data and timestamps; partial natural-event refreshes retain failed-source records within the configured event limit. Natural-event tooltips distinguish cached records and unknown event times. Unavailable volcano feeds no longer substitute hardcoded locations with invented alert levels.
Missing satellite imagery uses the vector background while downloading. Images are validated before being saved in AppData; failed downloads leave the vector fallback and a visible error, rather than a corrupt cached image. Closing the dashboard cancels outstanding map workers.
Use Ctrl+Tab / Ctrl+Shift+Tab to switch dashboard views, and Tab / Shift+Tab to move between controls. Map controls, currency selectors, credential inputs, and stock watchlist actions now have explicit screen-reader names and help. Existing rich tooltips and masked credential values are preserved.
Open Overlays from the keyboard: focus moves into the layer list, Tab cycles within it, and Escape closes it and returns focus to the Overlays button. News stories are focusable buttons; Enter or Space opens the original article. Failed or unsupported links show an inline error instead of failing silently. Currency selectors and news buttons show a green keyboard-focus outline.
Exchange markers and countdown cards are native buttons with screen-reader names and green focus outlines. Enter or Space opens exchange details and focuses the Close button; Escape closes details and returns focus to the exchange. Website links in details support the same keyboard activation and inline errors as news articles.
Activating a cluster focuses its first expanded exchange; Tab reaches the other members and the center Collapse button. Focus follows exchange controls through map redraws and falls back to Reset map view if the selected marker disappears. Automatic globe rotation pauses while a map control has keyboard focus and resumes when focus leaves the map.
Secondary labels and source/refresh footers now use brighter grey text. Closed, pre-market, holiday, and imminent-close colours remain distinct, with session text tested for at least 4.5:1 contrast on the standard navy surfaces.
In Market Overview, refreshes retain the selected region and exchange, update its details, and preserve the current grid cell for continued arrow-key navigation. If the exchange disappears, its old details are cleared; if the region disappears, the filter returns to All regions. Activity details include interval, freshness, proxy identity, and separate observation/retrieval timestamps when records are available. Approved-source activity integration remains incomplete; this does not enable a new live feed. The overview table now uses dark rows and headers, readable selected cells, and a visible keyboard-focus border. Cell text wraps instead of disappearing at column edges. Its legend explains session states and why activity values from different units, intervals, sources, or proxies must not be compared as a liquidity scale.
Complete keyboard workflows, scalable-text layout, and release-wide contrast checks are still being audited; this is not a claim of full accessibility compliance.
Edit the holidays.json file in the module's Data directory to add market holidays. Each exchange code maps to an array of ISO 8601 dates:
{
"XNYS": ["2026-01-01", "2026-01-19", "2026-02-16"],
"XLON": ["2026-01-01", "2026-04-03"]
}| Symbol | Exchange | City | Timezone |
|---|---|---|---|
| NYSE | New York Stock Exchange | New York | Eastern |
| NASDAQ | NASDAQ | New York | Eastern |
| LSE | London Stock Exchange | London | GMT/BST |
| EPA | Euronext Paris | Paris | CET/CEST |
| TSE | Tokyo Stock Exchange | Tokyo | JST |
| SSE | Shanghai Stock Exchange | Shanghai | CST |
| HKEX | Hong Kong Stock Exchange | Hong Kong | HKT |
| TSX | Toronto Stock Exchange | Toronto | Eastern |
| FRA | Frankfurt Stock Exchange | Frankfurt | CET/CEST |
| ASX | Australian Securities Exchange | Sydney | AEST/AEDT |
| BSE | Bombay Stock Exchange | Mumbai | IST |
| NSE | National Stock Exchange | Mumbai | IST |
| KRX | Korea Exchange | Seoul | KST |
| SIX | SIX Swiss Exchange | Zurich | CET/CEST |
| JSE | Johannesburg Stock Exchange | Johannesburg | SAST |
| B3 | B3 (Brasil Bolsa Balcao) | Sao Paulo | BRT |
| BMV | Bolsa Mexicana de Valores | Mexico City | CST |
| SGX | Singapore Exchange | Singapore | SGT |
| TWSE | Taiwan Stock Exchange | Taipei | CST |
| MOEX | Moscow Exchange | Moscow | MSK |
PSExchangeClock/Data/data-source-register.json is the single source of truth for every external source. It records each source's licence, attribution and quota policy, and whether it may be displayed.
The dashboard shows only approved sources. Sources still awaiting a terms review stay switched off; for example, BBC and CNBC feeds, CoinGecko and Twelve Data.
| Data | Source |
|---|---|
| Exchange hours | Curated catalogue shipped with the module (no network) |
| Financial news | EIA, ECB, Federal Reserve, SEC, NIST, NASA, U.S. Census, Bank of England, BEA, NPR, DW and PBS NewsHour RSS feeds (market-news-feeds.json) |
| FX rates and FX history | European Central Bank, plus Alpha Vantage for AED, SAR and TWD |
| Indices, commodities and their history | FRED |
| Index ETF proxies and stock quotes | Alpha Vantage |
| Cryptocurrency | CoinMarketCap |
| Map imagery | NASA Earth at Night and Blue Marble |
| Earthquakes | USGS |
| Volcanoes | Smithsonian GVP |
| Natural events | GDACS and NASA EONET (map-event-feeds.json) |
| Conflict zones | UCDP GED v25.1, CC BY 4.0 (bundled snapshot) |
| Power plants | WRI Global Power Plant Database (bundled) |
| Submarine cables | Bundled route data |
| Datacentres | IM3 Open Source Data Center Atlas (PNNL), derived from OpenStreetMap (ODbL 1.0; bundled, U.S. only) |
Trading hours come from a curated catalogue shipped with the module, with no network request. The hours are regular weekday sessions and don't include holidays, half days or auctions; use holidays.json for closures.
To rewrite the local cache from the catalogue:
Get-StockExchangeData -ForceRefreshTo start the dashboard with offline fixture data (useful for demos and testing):
New-StockExchangeCountdownDashboard -UseFixtureDataGet-Help New-StockExchangeCountdownDashboard -Full
Get-Help about_PSExchangeClockThis is a side project with one maintainer. Issues and small, focused pull requests are welcome. New data sources should be free and should come with clear terms of use, so they can be added to the source register.
Run the tests from the module folder with Pester 5:
Invoke-Pester -Path Tests\Unit,Tests\Integration,Tests\UIThis project is licensed under the MIT License — see the LICENSE file for details.


