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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: sopel_modules.stocks-1.1.3.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.5.6

File hashes

Hashes for sopel_modules.stocks-1.1.3.tar.gz
Algorithm Hash digest
SHA256 36c9089b41ac5acccf079f0896caa74646ab6c5c50f3cfa8fd636a953d32d50c
MD5 5792a0d9261baf810bbe8d6547ad7ca0
BLAKE2b-256 a5b67b22cd3d73cbc3c96351b27ec3e20ee49f6ee6e2c275d1d0b421bf735f72

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sopel_modules.stocks-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 96752a496f06ffe040d5f512a6de873f4d15823296a15c5b0baab1f40a33b5a5
MD5 89d40ca2e009cc32ffb921153354b26f
BLAKE2b-256 c47f360f8fe674f39fafaea0950424b26cc4797b7b6f47bd5d0e0fdd94b0ec7d

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