Skip to content

Add /markets page with tabbed market data display#85

Merged
asim merged 4 commits intomainfrom
copilot/add-markets-page-and-package
Feb 14, 2026
Merged

Add /markets page with tabbed market data display#85
asim merged 4 commits intomainfrom
copilot/add-markets-page-and-package

Conversation

Copy link
Contributor

Copilot AI commented Feb 14, 2026

Previously /markets redirected to coinmarketcap. Users need integrated market data viewing without context switching.

Changes

  • New markets package: Handlers for HTML/JSON responses, reuses existing widgets.GetAllPrices() data
  • Tabbed interface: Crypto (10 assets), Futures (4 commodities), Commodities (5 agricultural)
  • Sidebar integration: Added Markets navigation link between Video and Wallet
  • Responsive grid layout: Card-based design with hover states, mobile-optimized
  • Public route: No auth required, supports content negotiation via Accept header

Implementation

// Handler dispatches based on category query param and content type
func Handler(w http.ResponseWriter, r *http.Request) {
    category := r.URL.Query().Get("category")  // crypto|futures|commodities
    if category == "" {
        category = CategoryCrypto
    }
    
    if app.WantsJSON(r) {
        handleJSON(w, r, category)
        return
    }
    handleHTML(w, r, category)
}

Data sources unchanged: Coinbase API (crypto), Yahoo Finance (futures/commodities) with hourly refresh.

Screenshots

Main page with navigation
Markets page

Category tabs
Crypto
Futures
Commodities

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • api.coinbase.com
    • Triggering command: ./mu ./mu --serve --address=:8080 -goversion go1.24.13 -c=4 -nolocalimports -importcfg /tmp/go-build2289067051/b446/importcfg -pack /home/REDACTED/go/pkg/mod/google.golang.org/grpc@v1.73.0/internal/status/status.go git conf�� (dns block)
    • Triggering command: ./mu ./mu --serve --address=:8080 git d5/m�� s.go user.email (dns block)
    • Triggering command: ./mu ./mu --serve --address=:8080 x64/pkg/include ortc�� ration.go rviceconfig.go (dns block)
  • arb1.arbitrum.io
    • Triggering command: ./mu ./mu --serve --address=:8080 x64/pkg/include ortc�� ration.go rviceconfig.go (dns block)
    • Triggering command: ./mu ./mu --serve --address=:8080 (dns block)
  • eth.llamarpc.com
    • Triggering command: ./mu ./mu --serve --address=:8080 x64/pkg/include ortc�� ration.go rviceconfig.go (dns block)
    • Triggering command: ./mu ./mu --serve --address=:8080 (dns block)
  • feeds.bbci.co.uk
    • Triggering command: ./mu ./mu --serve --address=:8080 -goversion go1.24.13 -c=4 -nolocalimports -importcfg /tmp/go-build2289067051/b446/importcfg -pack /home/REDACTED/go/pkg/mod/google.golang.org/grpc@v1.73.0/internal/status/status.go git conf�� (dns block)
    • Triggering command: ./mu ./mu --serve --address=:8080 git d5/m�� s.go user.email (dns block)
    • Triggering command: ./mu ./mu --serve --address=:8080 x64/pkg/include ortc�� ration.go rviceconfig.go (dns block)
  • mainnet.base.org
    • Triggering command: ./mu ./mu --serve --address=:8080 x64/pkg/include ortc�� ration.go rviceconfig.go (dns block)
    • Triggering command: ./mu ./mu --serve --address=:8080 (dns block)
  • mainnet.optimism.io
    • Triggering command: ./mu ./mu --serve --address=:8080 x64/pkg/include ortc�� ration.go rviceconfig.go (dns block)
    • Triggering command: ./mu ./mu --serve --address=:8080 (dns block)
  • metadata.google.internal
    • Triggering command: ./mu ./mu --serve --address=:8080 -goversion go1.24.13 -c=4 -nolocalimports -importcfg /tmp/go-build2289067051/b446/importcfg -pack /home/REDACTED/go/pkg/mod/google.golang.org/grpc@v1.73.0/internal/status/status.go git conf�� (dns block)
    • Triggering command: ./mu ./mu --serve --address=:8080 git d5/m�� s.go user.email (dns block)
    • Triggering command: ./mu ./mu --serve --address=:8080 x64/pkg/include ortc�� ration.go rviceconfig.go (dns block)
  • news.ycombinator.com
    • Triggering command: ./mu ./mu --serve --address=:8080 -goversion go1.24.13 -c=4 -nolocalimports -importcfg /tmp/go-build2289067051/b446/importcfg -pack /home/REDACTED/go/pkg/mod/google.golang.org/grpc@v1.73.0/internal/status/status.go git conf�� (dns block)
    • Triggering command: ./mu ./mu --serve --address=:8080 git d5/m�� s.go user.email (dns block)
    • Triggering command: ./mu ./mu --serve --address=:8080 x64/pkg/include ortc�� ration.go rviceconfig.go (dns block)
  • reminder.dev
    • Triggering command: ./mu ./mu --serve --address=:8080 -goversion go1.24.13 -c=4 -nolocalimports -importcfg /tmp/go-build2289067051/b446/importcfg -pack /home/REDACTED/go/pkg/mod/google.golang.org/grpc@v1.73.0/internal/status/status.go git conf�� (dns block)
    • Triggering command: ./mu ./mu --serve --address=:8080 git d5/m�� s.go user.email (dns block)
    • Triggering command: ./mu ./mu --serve --address=:8080 x64/pkg/include ortc�� ration.go rviceconfig.go (dns block)
  • search.cnbc.com
    • Triggering command: ./mu ./mu --serve --address=:8080 -goversion go1.24.13 -c=4 -nolocalimports -importcfg /tmp/go-build2289067051/b446/importcfg -pack /home/REDACTED/go/pkg/mod/google.golang.org/grpc@v1.73.0/internal/status/status.go git conf�� (dns block)
    • Triggering command: ./mu ./mu --serve --address=:8080 git d5/m�� s.go user.email (dns block)
    • Triggering command: ./mu ./mu --serve --address=:8080 x64/pkg/include ortc�� ration.go rviceconfig.go (dns block)
  • techcrunch.com
    • Triggering command: ./mu ./mu --serve --address=:8080 -goversion go1.24.13 -c=4 -nolocalimports -importcfg /tmp/go-build2289067051/b446/importcfg -pack /home/REDACTED/go/pkg/mod/google.golang.org/grpc@v1.73.0/internal/status/status.go git conf�� (dns block)
    • Triggering command: ./mu ./mu --serve --address=:8080 git d5/m�� s.go user.email (dns block)
    • Triggering command: ./mu ./mu --serve --address=:8080 x64/pkg/include ortc�� ration.go rviceconfig.go (dns block)
  • www.aljazeera.com
    • Triggering command: ./mu ./mu --serve --address=:8080 -goversion go1.24.13 -c=4 -nolocalimports -importcfg /tmp/go-build2289067051/b446/importcfg -pack /home/REDACTED/go/pkg/mod/google.golang.org/grpc@v1.73.0/internal/status/status.go git conf�� (dns block)
    • Triggering command: ./mu ./mu --serve --address=:8080 git d5/m�� s.go user.email (dns block)
    • Triggering command: ./mu ./mu --serve --address=:8080 x64/pkg/include ortc�� ration.go rviceconfig.go (dns block)
  • www.coindesk.com
    • Triggering command: ./mu ./mu --serve --address=:8080 -goversion go1.24.13 -c=4 -nolocalimports -importcfg /tmp/go-build2289067051/b446/importcfg -pack /home/REDACTED/go/pkg/mod/google.golang.org/grpc@v1.73.0/internal/status/status.go git conf�� (dns block)
    • Triggering command: ./mu ./mu --serve --address=:8080 git d5/m�� s.go user.email (dns block)
    • Triggering command: ./mu ./mu --serve --address=:8080 x64/pkg/include ortc�� ration.go rviceconfig.go (dns block)
  • www.theguardian.com
    • Triggering command: ./mu ./mu --serve --address=:8080 -goversion go1.24.13 -c=4 -nolocalimports -importcfg /tmp/go-build2289067051/b446/importcfg -pack /home/REDACTED/go/pkg/mod/google.golang.org/grpc@v1.73.0/internal/status/status.go git conf�� (dns block)
    • Triggering command: ./mu ./mu --serve --address=:8080 git d5/m�� s.go user.email (dns block)
    • Triggering command: ./mu ./mu --serve --address=:8080 x64/pkg/include ortc�� ration.go rviceconfig.go (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 3 commits February 14, 2026 12:53
…and commodities

Co-authored-by: asim <17530+asim@users.noreply.github.com>
Co-authored-by: asim <17530+asim@users.noreply.github.com>
Co-authored-by: asim <17530+asim@users.noreply.github.com>
Copilot AI changed the title [WIP] Add markets page and integration for market data Add /markets page with tabbed market data display Feb 14, 2026
Copilot AI requested a review from asim February 14, 2026 13:00
@asim asim marked this pull request as ready for review February 14, 2026 14:54
@asim asim merged commit 3aa7477 into main Feb 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants