Skip to main content


The Stonk Master 📈💎🙌

Simple bot to monitor stocks, options and cryptos.

Build status License Top language discord.py Code quality

Overview • Installation • Features • Configuration • License

Overview

The Stonk Master is a Discord bot for fellow apes to monitor stonks without leaving their gaming habitat. It presents information about stonks in a very easy and simple way.

Installation

The installation is only tested on Ubuntu 20.04 LTS, however other operating systems should also work without any problem.

Make sure Python 3.8 (or higher) and pip are installed on your system. Then simply run:

pip install stonkmaster

(Optional) Some commands access the alpha vantage API, so they are only usable if an API key is defined. You can claim your free personal api key here. It takes only a minute and there are no payment methods required.

export ALPHA_VANTAGE_TOKEN=<YOUR_PERSONAL_ALPHA_VANTAGE_KEY>

It is necessary to obtain your personal discord token and define it as an environment variable before starting the bot.

export DISCORD_TOKEN=<YOUR_PERSONAL_DISCORD_TOKEN>

To start the bot, simply run the stonkmaster executable:

stonkmaster

Features

The main functionality of the bot is to query data from financial APIs and make it quickly accessible to users via a simple interface. For this purpose, we have developed a collection of commands that you can use.

Commands

  • $price [ticker] -> Shows the current price of the stonk, as well as its daily change.
  • $shorts [ticker] -> Provides currently known information on how heavily the stonk is shorted.
  • $sec [ticker] [filing-type] -> Fetches the latest SEC company filings from EDGAR.
  • $watch [ticker] -> Displays the price and change of a ticker in the bot status.
  • $wiki [keywords...] -> Searches investopedia for a definition of the keyword.

Following commands access the alpha vantage API, so a valid API key must be set up:

  • $chart [ticker] [range] -> Generates a chart showing the price development of the ticker over. The range can be specified in days (d), months (m) or years (y).

In future releases we also plan to implement the following commands:

  • $options [ticker] -> Displays options and their greeks of a specified ticker.
  • $config [key] [value] -> Changes the configuration of the bot (for example the emotes).
  • $watchlist [ticker] -> Adds a ticker to your personal watchlist. The bot will inform you about movements in your stocks.
  • $ipos -> Shows all IPOs that are likely to take place in the next 2 weeks.
  • $earnings -> Shows all company earnings expected in the next 2 weeks.
  • $fundamentals [ticker] -> Displays the fundamental data points of a company.

The list of commands is continuously being expanded. If you find bugs or want to suggest improvements, do not hesitate to make a pull request.

Configuration

You can create your own configuration file to customize emotes and texts. First copy the default configuration from config/default.ini into a custom configuration file:

wget -O custom.ini https://raw.githubusercontent.com/d-stoll/stonkmaster/master/stonkmaster/config/default.ini

Now change all configurations to git your own setup:

vim custom.ini

Finally, run the bot with your personal configuration:

stonkmaster --config custom.ini

License

Licensed under the Apache License, Version 2.0 (the "License"); You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an " AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Metadata

Release files for stonkmaster 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stonkmaster 1.0.1
File Size Uploaded
stonkmaster-1.0.1.tar.gz 29.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for stonkmaster 1.0.1
File Interpreter ABI Platform
stonkmaster-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 72.8 kB

Release files / stonkmaster-1.0.1.tar.gz

Download URL stonkmaster-1.0.1.tar.gz
Size 29.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d75a4ce54c42aa73fb2db4b1c91b80fd675b764fe40edb8842e084b99f159516
BLAKE2b-256 checksum
How to use checksums
eac95d400cc80acd6885b4cbe8e6122f753c373d626597196f4dd55535b3ef51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

Release files / stonkmaster-1.0.1-py3-none-any.whl

Download URL stonkmaster-1.0.1-py3-none-any.whl
Size 43.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
16cb64484f0efaef95118e28ed69ad67519462f43a6f55ceb2a3585569759054
BLAKE2b-256 checksum
How to use checksums
d4a14f52426694da7a1166ea5e91ac3ff0c542bcb9c993daff8b6a0b4dcbfe2f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page