Real-time and historical quantitative Discord Bot for information, prices and graphs regarding stocks listed on American and Canadian stock exchanges
Report Bug
Stocky allows you to view the price of stocks listed on US and Canadian Stock Exchanges in real-time. The bot gives daily graphs, info, daily numbers and more for any stock desired, all through simple easy-to-use commands!
This project was developed using the Yahoo! Finance API and the Discord.py module.
GIFs of some commands can be found below.
Using the $price
command
Using the $info
command
Using the $graph
command
To use this bot, some packages need to be installed, download these packages from your terminal
pip3 install discord.py
pip3 install yfinance==0.1.62
pip3 install plotly
pip3 install kaleido
For best results when graphing, install the Raleway font.
Then clone the repository
git clone https://github.com/Momin-C/Stocky.git
Once the repository has been cloned, the bot must be activated using the discord developer portal. Either use the instructions written below or follow this video
- Go to the Discord developer portal application website
- Click New Application and add a name
- Click the bot menu on the left and click "Add Bot"
- Set the bot username to "Stocky" and use the logo in the images directory as the bot's picture
- Go to the bot permission website and select read messages, send messages, embed links and attach files
- Under the permissions, paste the application ID which can be found on the "General Information" section of the discord developr portal
- Click the link given and add the bot to your server
- Right-click the "General" text channel and copy the channel ID, paste this into the file ChannelID.txt, making this the file's only contents
- On the discord developer portal bot site, copy the token and then paste it in the file ClientID.txt, making this the file's only contents
- Run the Stocky.py python file for the bot to be active
If you have any ideas on how to improve Stocky, make a contribution!
- Fork the project
- Create a new branch (
git checkout -b update
) - Commit your changes (
git commit -m 'Description of update'
) - Push to the branch (
git push origin update
) - Open a new pull request
- Thanks to Ajay Gandecha for instructions on how to set-up a Discord bot
- Credit to othneildrew for the README template
Momin Chaudhry - @momin_c - [email protected]