Stock lookup plugin for Sopel IRC bots
Project description
sopel-stocks
A stock lookup plugin for Sopel IRC bots
Maintainer: @RustyBower
Installing
Releases are hosted on PyPI, so after installing Sopel, all you need is pip:
$ pip install sopel-stocks
Requirements
This release of sopel-stocks requires Python 3.8+ and Sopel 8.0 or higher.
You will need an API key from one of the following providers:
- Alpha Vantage
- Finnhub (recommended)
- IEX Cloud
Configuring
The easiest way to configure sopel-stocks is via Sopel's
configuration wizard—simply run sopel-plugins configure stocks
and enter the values for which it prompts you.
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)
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%)⬇
Changelog
1.3.0
First release as sopel-stocks, replacing sopel_modules.stocks.
1.2.3
Added:
- Finnhub data provider
Fixed:
- Alpha Vantage API endpoint (yet again)
1.2.2
Changed:
- Further Alpha Vantage API updates
1.2.1
Fixed:
- Move away from premium Alpha Vantage endpoint
Meta:
- More packaging workflow updates
1.2.0
Added:
- Help message for
.stockcommand - Multi-symbol lookup
Meta:
- Project moved to Sopel's GitHub org, and docs/workflows updated
1.1.3
Fixed:
- Bug with newly IPO'd stocks
1.1.2
Fixed:
- Handling input of foreign ticker symbols
Meta:
- Additional installation documentation
1.1.1
Fixed:
- Presentation bug when using IEX Cloud data
Meta:
- Fixed packaging workflow
1.1.0
Added:
- IEX Cloud data provider
- New configuration to select data provider
1.0.4
Improved documentation and error handling
1.0.3
Fixed handling stocks with no prior history, i.e. new symbols
1.0.2
Fixed:
- Formatting for penny stocks
Meta:
- Additional packaging tweaks
1.0.1
Style/packaging fixes (no corresponding release)
1.0.0
Initial release of sopel_modules.stocks module, using Alpha Vantage for data.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sopel_stocks-2.0.2.tar.gz.
File metadata
- Download URL: sopel_stocks-2.0.2.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22054ffc21acf1f2fa0ee971f81c240927dc6a4af2e887f839dda88ec6c27cf2
|
|
| MD5 |
35bd8c71fcdc71a4fdb1378779a90c1f
|
|
| BLAKE2b-256 |
92385fa207e5b6830beb3d19fbc9599a3394d713ffd84698ec4d5a3e258f2dd5
|
Provenance
The following attestation bundles were made for sopel_stocks-2.0.2.tar.gz:
Publisher:
python-publish.yml on sopel-irc/sopel-stocks
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sopel_stocks-2.0.2.tar.gz -
Subject digest:
22054ffc21acf1f2fa0ee971f81c240927dc6a4af2e887f839dda88ec6c27cf2 - Sigstore transparency entry: 854873772
- Sigstore integration time:
-
Permalink:
sopel-irc/sopel-stocks@4a9efb8b0ef4107342d8ea4bc281e40fbded7705 -
Branch / Tag:
refs/tags/v2.0.2 - Owner: https://github.com/sopel-irc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@4a9efb8b0ef4107342d8ea4bc281e40fbded7705 -
Trigger Event:
release
-
Statement type:
File details
Details for the file sopel_stocks-2.0.2-py3-none-any.whl.
File metadata
- Download URL: sopel_stocks-2.0.2-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6aff5acc75146ba30b995a25a296430793af258d866832bfc3bd8215cc1afe1
|
|
| MD5 |
65b8bb92f17d7db0064a11c2dc1261d2
|
|
| BLAKE2b-256 |
9e050fa49a68bc3763285cebf3876f67e1e8939e4c1fdae62ec10d4c97f5d243
|
Provenance
The following attestation bundles were made for sopel_stocks-2.0.2-py3-none-any.whl:
Publisher:
python-publish.yml on sopel-irc/sopel-stocks
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sopel_stocks-2.0.2-py3-none-any.whl -
Subject digest:
e6aff5acc75146ba30b995a25a296430793af258d866832bfc3bd8215cc1afe1 - Sigstore transparency entry: 854873776
- Sigstore integration time:
-
Permalink:
sopel-irc/sopel-stocks@4a9efb8b0ef4107342d8ea4bc281e40fbded7705 -
Branch / Tag:
refs/tags/v2.0.2 - Owner: https://github.com/sopel-irc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@4a9efb8b0ef4107342d8ea4bc281e40fbded7705 -
Trigger Event:
release
-
Statement type: