Markets: table view with 24h price changes and chart links#121
Merged
Conversation
Co-authored-by: asim <17530+asim@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update markets page to display price changes and links
Markets: table view with 24h price changes and chart links
Feb 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The markets page showed only current prices with no change data and no way to drill into charts. This adds 24h percentage changes, color-coded up/down indicators, and per-asset chart links.
Data layer (
widgets/markets.go)PriceDatastruct:{ Price, Change24h }/api/v3/simple/price?include_24hr_change=true);cryptoGeckoIDsmap translates tickers to CoinGecko IDsRegularMarketChangePercentalready returned by finance-go (Yahoo Finance)GetAllPriceData()function exposes enriched data;price_data.jsonpersisted alongsideprices.jsonPage handler (
markets/markets.go)chartLinksmap routes crypto → CoinGecko, futures/commodities → Yahoo FinanceformatChange()renders+5.00%/-2.34%with.markets-change-up/.markets-change-down/.markets-change-neutralCSS classesStyles (
app/html/mu.css).markets-table,.markets-chart-link, and change color classes✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.