A very simple stock market simulation.
You can simulate IPOs by alotting issuing new stocks and alotting a set amount of stocks to any user.
The system maintains an order book with two sides:
- Bids: Buy orders sorted by price (highest first)
- Asks: Sell orders sorted by price (lowest first) And then we match them. In the words of a certain cartoon character, "Take what they give you, give away what you have to, and the difference is yours."
git clone https://github.com/manogyasingh/StonkExchange
cd StonkExchange
pip install -r requirements.txt
python app.py
Then just go to 127.0.0.1:5001
The admin credentials are user: admin, password: adminpass
For other things just create an account