Skip to main content

Sopel Stocks Plugin

Project description

Python Tests PyPI version Total alerts Language grade: Python

Maintainer: @RustyBower

sopel-stocks

sopel-stocks is an stock lookup plugin for Sopel

Installing

If possible, use pip to install this plugin. Below are example commands; you might need to add sudo and/or call a different pip (e.g. pip3) depending on your system and environment. Do not use setup.py install; Sopel won't be able to load the plugin correctly.

Published release

pip install sopel-modules.stocks

From source

# Clone the repo, then run this in /path/to/sopel-stocks
pip install .

Configuring

You can automatically configure this plugin using the sopel configure --plugins command.

However, if you want or need to configure this plugin manually, you will need to define the following in ~/.sopel/default.cfg

[stocks]
api_key = API_KEY
provider = alphavantage (or iexcloud)

Requirements

API Key (from 1 of the following providers)

https://www.alphavantage.co/support/#api-key
https://iexcloud.io/console/tokens

Python Requirements

requests
sopel

Usage

.stock msft
<sopel> MSFT $123.37 1.6 (1.31%)⬆

.stock aapl amzn goog
<sopel> AAPL $150.83 -2.51 (-1.64%)⬇
<sopel> AMZN $97.06 -5.38 (-5.25%)⬇
<sopel> GOOG $90.445 -4.215 (-4.45%)⬇

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

sopel_modules.stocks-1.2.1.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

sopel_modules.stocks-1.2.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file sopel_modules.stocks-1.2.1.tar.gz.

File metadata

  • Download URL: sopel_modules.stocks-1.2.1.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for sopel_modules.stocks-1.2.1.tar.gz
Algorithm Hash digest
SHA256 7c8ccaa60d519ed0c817fbb37e7e8b72ae8f0127d18d2febff2d660992538deb
MD5 f01f94403a499cf123e4259f1c466c6a
BLAKE2b-256 43e4baf5f63d6e0ded8746cfbb737183021f46031ec16d07f8ff69c09c6ba6ce

See more details on using hashes here.

File details

Details for the file sopel_modules.stocks-1.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for sopel_modules.stocks-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 75cbf2e4d0535d2c0c6212a5a29a0f04cd2a4d6bd9a1ddd63b3c54192f0e2e7b
MD5 a6b90588685a63ff880977c8c6fbe056
BLAKE2b-256 a5d81f84e6c4a698d11b7b009b90a831ecd98c116f99e4c287b2302be8ca2a35

See more details on using hashes here.

Supported by

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