A fantasy stock market where every NBA player is a stock. You start with $100,000 in virtual cash, buy and sell shares of players, and their prices move every night based on how they actually played.
The pricing engine is designed to reward consistency over one-off explosions. It works in three steps:
PTS + 1.2×REB + 1.5×AST + 3×STL + 3×BLK − TOV.A Vercel cron job runs every morning. It scrapes the previous night's box scores from ESPN, stores each player's game log, and reprices every active player. Historical prices were seeded from a CSV of every game log since the 1996–97 season.
Each player has a price chart, season and career stats, and a buy button. The "Get AI Trend Analysis" button sends the player's recent game-by-game prices and stats to Claude, which writes a two-to-three sentence read on where the stock is heading and why.
NBA Stocks also ships as a command-line app. Running npx nbastocks logs you in and opens an
interactive prompt where you can quote a player by ticker, buy and sell shares, and check your positions
and balance. It talks to the same backend through a separate set of token-authenticated API routes.
Screenshots are from a local copy of the app running on a demo account, with real NBA stats and made-up users.