How omondi-je/football-stock-exchange works
Football Stock Exchange is a browser-based World Cup market simulator. A user opens the app, which initializes simulated team prices and a live match; match results update prices and indices. Users can inspect team analytics, forecasts and market-risk views, and trade through a portfolio whose holdings and audit trail persist in browser storage. The README documents additional analytics capabilities; the sampled code confirms many view implementations, but does not expose every route or dispatch call, so uncertain view wiring is omitted.
Main entry points: app.js App & Match Loop · portfolio.js Portfolio State · data.js Match & Pricing Engine · predictions.js Match Predictions
Components 12
Market Runtime
- App & Match Loop
js/app.js - Match & Pricing Engine
js/data.js
Portfolio & Trading
- Portfolio State
js/portfolio.js - Browser Storage
- Trade Audit View
js/trade-history.js
Market Analytics
- Market Indices
js/indices-view.js - Volatility Lab
js/volatility.js - Correlation Matrix
js/correlations.js - Match Predictions
js/predictions.js
Team Discovery
- Team Detail
js/team-detail.js - Team Watchlist
js/watchlist.js
Other components
- Browser User
Connections 14
- Browser User → App & Match Loop: uses
README.md - App & Match Loop → Match & Pricing Engine: simulates matches
js/app.js - App & Match Loop → Match & Pricing Engine: calculates price impact
js/app.js - App & Match Loop → Portfolio State: executes trades
js/app.js - Portfolio State → Browser Storage: persists state
js/portfolio.js - App & Match Loop → Market Indices: renders view
js/app.js - App & Match Loop → Volatility Lab: renders view
js/app.js - App & Match Loop → Correlation Matrix: renders view
js/app.js - App & Match Loop → Match Predictions: renders view
js/app.js - Match Predictions → Match & Pricing Engine: uses Elo model
js/predictions.js - App & Match Loop → Team Detail: renders view
js/app.js - App & Match Loop → Team Watchlist: renders view
js/app.js - Team Watchlist → Browser Storage: persists favorites
js/watchlist.js - Trade Audit View → Portfolio State: reads trades
js/trade-history.js