Skip to main content

Sopel Stocks Plugin

Project description

Build Status Maintainability Test Coverage PyPI version

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

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

Python Requirements

requests
sopel

Usage

.stock djia
DJIA $26559.5 110 (0.42%)⬆

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

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.1.2.tar.gz (4.4 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: sopel_modules.stocks-1.1.2.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.5.6

File hashes

Hashes for sopel_modules.stocks-1.1.2.tar.gz
Algorithm Hash digest
SHA256 09c5b080f8c42e5d864403dc215bc3233f1058638d48774d78bb25973a301d6b
MD5 d60c4edb42881eb88365afa1525f7286
BLAKE2b-256 e4ec717f559462178f6f007449a445b4cf3b16e3e060864a98291d446a689b36

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