Inspiration

This is a project that helps Business and Economics students understand how the stock market and trading works. I used a stock market simulator when I was younger in order to learn the concepts, and I found it extremely useful. Using this tool, students can learn many key concepts that make the stock market simple.

What it does

Allows users to trade $10,000 of virtual money in stock markets around the world, and allows users to see many key parameters such as stock price, shares owned, market cap, etc.

How I built it

It runs on Python using the Flask framework. I built it on Friday and Saturday, and spent most of Sunday fixing bugs.

Challenges I ran into

Whenever a price quote is requested, a custom graph is generated with the stock price of a certain company for the last x days, as wanted by the user. This feature uses an API and generates a new graph every time. This was one of the hardest things to implement in the entire project, but it worked in the end.

Accomplishments that I'm proud of

It worked in the end without any problems, which is much harder than it sounds. Fixing all the bugs was the longest and hardest part of building this project.

What I learned

How to use Flask and (a lot of) problem solving skills. I also became more comfortable with using and learning new libraries and becoming familiar with documentation.

What's next for Stonks

I want to add a feature which enables leagues where friends can compete with each other. This will need a lot more behind-the-scenes infrastructure which will take some time to implement.

Built With

Share this project:

Updates