Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pranavgoel29/stock-bot-python


https://github.com/pranavgoel29/stock-bot-python

Last synced: 11 days ago
JSON representation

Awesome Lists containing this project

README

        

# Stocky

Stocky is a discord bot used to fetch information about the stocks current price listed on NASDAQ USA. Through just one command you can get the stock price of the company you wish within a second.

## Purpose
Now a days people are more willing to invest in stocks than before. However, stock market for a common person is a complex thing, this is where Stocky comes into play.

This Discord Bot helps you to find the current and most recent price of any stock in a second.

Through adding this bot in your server you can just run the commands and you will be able to find the pricing right away.

## API and Libraries used

***Discord*** - Discord.py revolves around the concept of events. An event is something you listen to and then respond to. For example, when a message happens, you will receive an event about it that you can respond to.

***Yfinance*** - This API serves real-time and historical data for crypto and stock markers. It provides extensive financial data for public companies, mutual funds, etf, bonds, crypto currencies, and national currencies, including option chains and market analysis.

***Dotenv*** - Dotenv is a zero-dependency module that loads environment variables from a .env file into process.env. Storing configuration in the environment separate from code is based on The Twelve-Factor App methodology.

***Request*** - Requests allows you to send HTTP/1.1 requests extremely easily.There’s no need to manually add query strings to your URLs, or to form-encode your POST data. Keep-alive and HTTPconnection pooling are 100% automatic, thanks to urllib3.

***JSON*** - JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for machines to parse and generate. We are using this library for better readability of the data that we are providing to the user when he is using our software.

## Commands

***!about*** - To get a short introduction of the bot and its features.

***!commands*** - To get list of commands that you can use to access all the features of stocky.

***!inspire*** - Use this command to get inspirational quotes on your discord channel use.

***!stock*** - To get useful stock data about some of the top tech US companies like Google, Adobe, and Apple.

***!price 'stockname'*** - Stocky will give you stock information of the specific stock you need. You just need to type the stock name of the company. You will get stock’s high, low and closing price of the current day.