Sopel Stocks Plugin
Project description
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 = finnhub (or alphavantage/iexcloud)
Requirements
API Key (from 1 of the following providers)
https://www.alphavantage.co/support/#api-key
https://iexcloud.io/console/tokens
https://finnhub.io/dashboard (recommended)
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file sopel_modules.stocks-1.2.3.tar.gz
.
File metadata
- Download URL: sopel_modules.stocks-1.2.3.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d1daca8903355e8c00015b2b1abaf91cad4b46f1eaba4e24100ee8b98a5f385 |
|
MD5 | 42cb10c32fc6c92e1f62738db6c40196 |
|
BLAKE2b-256 | 21534d07c6b804bb3cdbc863ab7311dc7dd322ac3e8f861f6dc7b292dfb459a3 |
Provenance
File details
Details for the file sopel_modules.stocks-1.2.3-py3-none-any.whl
.
File metadata
- Download URL: sopel_modules.stocks-1.2.3-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df90148dfcbe22dbc311c379fef3d77564db8bcc74e1f06fa482311f993ef1d5 |
|
MD5 | 02cb450a0b3a6c2cdfbce4a68a3b2cff |
|
BLAKE2b-256 | c0895a6cf8c1f37e689684f2f51269c6a6462184cfc5b5150e1fa58fe3a16d1d |