-
-
Using the $buy command to find out how many shares of a certain stock I can buy.
-
Using the $graph command to see how a given stock has been doing over a given time perio
-
Using the $active command to check the most actively traded stocks
-
The bot will greet you when you enter the server and using the $help command gives you the list of commands the bot currently has to offer
-
Using the $ticker command to check the current prices on a stock and the stock volume
Inspiration
Our team was inspired by the recent craze and attention that stocks received from /r/wallstreetbets and the GME Short Squeeze, so we decided to create this stocks bot to make it easier for anyone to look at and analyze stocks, and we hope that it gets more people interested in the stock market and personal finance in general!
What it does
The stock bot can check the price of a stock and determine how many shares you can buy with a given amount. This is a useful feature because in DIY brokerages, in the event you have insufficient funds to purchase a security, the transaction still goes through using borrowed money which is then used to charge interest. Even in the event it doesn't there are a lot of hidden loopholes that are used and that the average Joe may not know about. Another feature of the bot is that it can pull information on the most actively traded stocks and display it and also it can obtain a graph of a given stock over a given time interval for technical analysis.
How we built it
The bot was built using the help of a few APIs, most notably discord.py, which is an easy-to-use and async-ready API wrapper for Discord. Our team decided to write the code in python because the vast collection of online resources would be a huge plus and it would provide the smoothest experience. For collaborative work, we used GitHub and GitHub Desktop.
Challenges we ran into
The first major challenge that we ran into was that none of us had any experience creating discord bots, so before even starting any code, we had to spend some time and familiarize ourselves with discord bots, the correct API's and how the code behind them works. After learning more about discord bots, we were all even more fascinated by how they work and the endless possibilities that can be done with them. Another challenge that we faced was that we had to come up with an issue that we can solve with a discord bot. In the end, we decided to create a stocks bot because of how much attention stocks have recently got, and we aimed to make it easier for discord users to get information about stocks.
Accomplishments that we're proud of
A big accomplishment that we're most proud of is that we have created a discord bot together. We have all used discord to talk to friends, communities, and family, and we all have experience using various bots, but we have never created a bot ourselves, and creating this bot is a huge accomplishment for all of us, as it shows that we can accomplish anything as a team!
What we learned
The most important piece of knowledge that we learned was how to create discord bots in python, this is important because of how often discord is used for various communities, and knowing how to create a discord bot can simplify many daily activities, such as looking at stocks.
What's next for Discord Stonks Bot
The next step for this project is to implement common technical analysis algorithms and patterns into the $graph feature. This serves as an entry point for beginners to expand their knowledge and gain a deeper understanding of the stock markets while also helping them make better financial decisions. Another potential improvement for our bot is to venture into the promising world of cryptocurrency. We know how popular it is and we would love to be able to make our bot work with cryptocurrency just like it works with regular old stocks.
Built With
- discord.py
- mplfinance
- python
- yahoo-finance
Log in or sign up for Devpost to join the conversation.