GhostTrade.
What can building a trading simulator teach you about state?
- STATUS
- Built project
- CONTENT BASIS
- Source reviewed
- BUILT WITH
- ReactExpressMongoDBNode.jsLightweight Charts
- EXPLORE THE SOURCE
- GitHub repository
A collaborative MERN paper trading project with a virtual balance, stock search, market data, interactive charts, holdings, and a transaction history. The buy and sell controllers update virtual balances and portfolio positions and record transactions.
A trade is a chain of changes
The Express trade controllers check available virtual funds or holdings, update portfolio quantities and average purchase prices, and append a transaction with the resulting balance.
Making market data readable
The React client includes stock search, market views, individual stock pages, and time-series charts. The server integrates with TwelveData for market information.
An end-to-end application
JWT and cookie-based authentication connect the interface to protected portfolio and trading routes. MongoDB stores users, holdings, and transactions. Docker configuration supports running the client and server.
- 01React interface
- 02Express API
- 03Trade controller
- 04MongoDB