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

https://github.com/samzhang02/stonk

Discord bot that allows query of stock market information via user commands.
https://github.com/samzhang02/stonk

bot discord finance

Last synced: about 1 year ago
JSON representation

Discord bot that allows query of stock market information via user commands.

Awesome Lists containing this project

README

          

# STONK

[![discord.py Library](https://img.shields.io/badge/discord.py-2.1.0-blue.svg)](https://github.com/Rapptz/discord.py)
[![Python 3](https://img.shields.io/badge/python-3.10.9-blue.svg)](https://www.python.org/)

Discord bot that allows for the retrieval of the stock market's information via user commands.

https://user-images.githubusercontent.com/112342947/212703080-810c866b-6e16-4de1-b878-b5605a3abf5e.mp4

## REQUIREMENTS

Libraries: `pip install -r requirements.txt`

Database: SQLite3

### To create you own instance:

`.env` file with a Discord bot API key from the Discord Developper Portal to create your own discord bot instance.

### To invite my instance of the bot to your server:

Link: https://discordapp.com/oauth2/authorize?&client_id=1048012729711087626&scope=bot

## ROADMAP
- Implement price change since open in all commands
- Implement embeds' color change depending of whether change since open is positive or negative

## COMMANDS
All commands start with the prefix `stonk` (Caps sensitive)

`stonk help` to retrieve all possible bot commands

Retrieve all possible bot commands.



## CREDITS
The underlying API wrapper for the discord bot is [discord.py](https://github.com/Rapptz/discord.py).

Most of the stock market's information are retrieved using the [yfinance](https://github.com/ranaroussi/yfinance) library.