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.

Files for sopel-modules.stocks, version 1.1.2
Filename, size File type Python version Upload date Hashes
Filename, size sopel_modules.stocks-1.1.2.tar.gz (4.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page