Skip to main content

Simple bot to monitor stocks, options and cryptos.

Project description


The Stonk Master 📈💎🙌

Simple bot to monitor stocks, options and cryptos.

Build status License Top language discord.py Code quality

OverviewInstallationFeaturesConfigurationLicense

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stonkmaster-1.0.1.tar.gz (29.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stonkmaster-1.0.1-py3-none-any.whl (43.0 kB view details)

Uploaded Python 3

File details

Details for the file stonkmaster-1.0.1.tar.gz.

File metadata

  • Download URL: stonkmaster-1.0.1.tar.gz
  • Upload date:
  • Size: 29.8 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for stonkmaster-1.0.1.tar.gz
Algorithm Hash digest
SHA256 d75a4ce54c42aa73fb2db4b1c91b80fd675b764fe40edb8842e084b99f159516
MD5 4dd33256d96818edc6330e25d745938c
BLAKE2b-256 eac95d400cc80acd6885b4cbe8e6122f753c373d626597196f4dd55535b3ef51

See more details on using hashes here.

File details

Details for the file stonkmaster-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: stonkmaster-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 43.0 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for stonkmaster-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 16cb64484f0efaef95118e28ed69ad67519462f43a6f55ceb2a3585569759054
MD5 d6ff739c35aa6a38463277979aedd075
BLAKE2b-256 d4a14f52426694da7a1166ea5e91ac3ff0c542bcb9c993daff8b6a0b4dcbfe2f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page