Inspiration

We wanted to invest early on but we came to realization that investing is scary and that is also why many people don't do it. They have no training or someone assisting them and as you know many people also lose money. So we came up with the idea of Panda Stocks, where people can invest with fake money, and with real time prices. They can get hands on experience on investing without being scared to lose money. They also can receive some assistance from the AI built in Panda Stocks, to lead them in better decision making, and learn from those decision.

What it does

Panda Stocks helps you learn how to invest and also assists you before you start investing with real money. Users can create an account and they will start with $10,000. They can view, buy, sell stocks, and see how the stock prices change over time and how much profit they gain. If they need some help, the AI will assist them and give them the latest news about stocks.

How we built it

We started with frontend, where we built all the HTML, and then customized with CSS. We then started working on python, where we linked the database with sqlite3, and then made models and routes. Models includes the database code of stocks and users. The routes include what they are specifically doing for example, transaction would have all buy, sell, view methods. The AI route focuses on AI implementation, and authentication route authenticate user (Login, create account). We then have app.py that handles all the blueprints, and utils.py, which handles all the financial modeling API keys. After that we ran into errors and debug them to have a fully functional project.

Challenges we ran into

There were three challenges we ran into. 1) The flask ports were being messed up, so the flask connects with port 5500, where my google local host ports are running on 5000. Then we learned something called CORS, which prevents from changing ports every time, and runs on same ports. 2) When user1 buys a stock, it adds to every user. This was very difficult because we couldn't find exactly where this might be happening. We then figured out that it was happening, stocks.py where the buy method was incorrectly written. After that we made it authenticate user before adding the stocks. 3) We couldn't find a good API that gives free stock prices in real time. They either costed money, or the data given was just not good. Then after few searches we found Financial modeling prep API, which helped us a lot for free.

Accomplishments that we're proud of

We are proud of this project and learning while we were creating this project. We can have people finally invest without worrying at all. Not only that user can try something new since they project shows fake money. Also, if they need assistance, they have Panda AI (Gemini AI) to help them through their journey.

What we learned

We learned a lot through this hackathon journey, for example, Python CORS, more understanding about flask, and sending data through JSON. We learned how to find good API, and most of all making an AI chat bot to assist the user on decision making.

Built With

Share this project:

Updates