Skip to content

Momin-C/Stocky

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Logo

Stocky

Real-time and historical quantitative Discord Bot for information, prices and graphs regarding stocks listed on American and Canadian stock exchanges

Report Bug

Issues MIT License LinkedIn

Table of Contents

About The Project

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!

Developed Using

This project was developed using the Yahoo! Finance API and the Discord.py module.

Demos

GIFs of some commands can be found below. Using the $price command

Using the $info command

Using the $graph command

Getting Started

Prerequisites

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

Setting up the bot

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

  1. Go to the Discord developer portal application website
  2. Click New Application and add a name
  3. Click the bot menu on the left and click "Add Bot"
  4. Set the bot username to "Stocky" and use the logo in the images directory as the bot's picture
  5. Go to the bot permission website and select read messages, send messages, embed links and attach files
  6. Under the permissions, paste the application ID which can be found on the "General Information" section of the discord developr portal
  7. Click the link given and add the bot to your server
  8. 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
  9. 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
  10. Run the Stocky.py python file for the bot to be active

Contributing

If you have any ideas on how to improve Stocky, make a contribution!

  1. Fork the project
  2. Create a new branch (git checkout -b update)
  3. Commit your changes (git commit -m 'Description of update')
  4. Push to the branch (git push origin update)
  5. Open a new pull request

References

Contact

Momin Chaudhry - @momin_c - [email protected]

About

Stock Bot for Discord

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages