// project 03 / 08
PaperStack
Trade the market, risk nothing.
A paper trading platform where you practice stock trading with $100K in virtual cash and real-time market data.
PaperStack
// screenshots coming soon
- year
- 2026
- role
- Full-stack developer
- context
- Team project
- status
- Completed
$100K
virtual starting cash
10
core features
Live
WebSocket price feed
0
real money involved
// the story
“Trade the market, risk nothing.”
PaperStack lets anyone practice trading without risking real money. Every account starts with $100K in virtual cash, real-time quotes stream in from Finnhub, and trades update the portfolio instantly.
Around the core buy and sell flow sit the features that make practice stick: a watchlist, side-by-side stock comparison, portfolio charts, a diversification score, a leaderboard, and badges for milestones.
- Built a paper trading platform for users to practice stock trading with JWT auth and live WebSocket price feeds.
- Engineered Go/Gin REST backend with PostgreSQL parameterized queries and routine background jobs.
// what it does
Features that matter.
Real-time quotes
Prices stream to the browser over WebSockets, so the portfolio moves with the market.
01Buy & sell
Trade with $100K in virtual cash, with every order recorded in a full transaction history.
02Portfolio charts
Track portfolio value over time and see how diversified your holdings are.
03Compare stocks
Put stocks side by side, and keep favourites on a watchlist.
04Leaderboard & badges
See how you rank against other traders and unlock achievements along the way.
05Secure accounts
Register and log in with JWT authentication guarding every API route.
06// how it's wired
Under the hood.
Client
Next.js app
Dashboard, trade, compare
Zustand + Recharts
State and portfolio charts
API
Go / Gin server
Handlers, services, JWT middleware
WebSocket hub
Live price updates
Data

PostgreSQL
Parameterized queries via sqlc
Finnhub API
Real-time market data
// built with
The stack.
Frontend
Next.js
TypeScript
Tailwind CSS- Zustand
- Recharts
Backend
- Go
- Gin
- JWT
- WebSockets
- REST APIs
Data
PostgreSQL
$ git clone github.com/vineet-panchal/PaperStack
$ cd paperstack
// loading stack...
Next.js
TypeScript
Tailwind CSS
Zustand
Recharts
Go
Gin
JWT
WebSockets
REST APIs
PostgreSQL
✓ 11 technologies ready
// build log
How it came together.
- 01
Schema first
Set up the PostgreSQL schema and migrations for users, holdings, orders, watchlists and badges.
- 02
Go API
Built Gin handlers and services with JWT middleware and parameterized SQL queries.
- 03
Live prices
Connected Finnhub market data and pushed price updates to clients over WebSockets.
- 04
The trading UI
Built the dashboard, trade and compare pages in Next.js with Zustand state and Recharts graphs.
- 05
Make it stick
Added the leaderboard, badges, diversification score and background jobs that keep stats fresh.
// problems solved
Hard parts, handled.
Keeping prices live
// problem
Polling for quotes is slow and wasteful.
// solution
A WebSocket feed pushes price changes to every open client as they happen.
Safe queries
// problem
Trading endpoints take user input that touches money and holdings.
// solution
Every query is parameterized, and JWT middleware guards all account routes.
// next project
Teach For Cambodia
Empowering classrooms through code.