Skip to main content

sopel-stocks

A stock lookup plugin for Sopel IRC bots

Python Tests PyPI version

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:

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 .stock command
  • 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.

Metadata

Release files for sopel-stocks 2.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sopel-stocks 2.0.2
File Size Uploaded Provenance
sopel_stocks-2.0.2.tar.gz 6.8 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for sopel-stocks 2.0.2
File Interpreter ABI Platform
sopel_stocks-2.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 14.1 kB

Release files / sopel_stocks-2.0.2.tar.gz

Download URL sopel_stocks-2.0.2.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
22054ffc21acf1f2fa0ee971f81c240927dc6a4af2e887f839dda88ec6c27cf2
BLAKE2b-256 checksum
How to use checksums
92385fa207e5b6830beb3d19fbc9599a3394d713ffd84698ec4d5a3e258f2dd5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 26, 2026.

Transparency log

Release files / sopel_stocks-2.0.2-py3-none-any.whl

Download URL sopel_stocks-2.0.2-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e6aff5acc75146ba30b995a25a296430793af258d866832bfc3bd8215cc1afe1
BLAKE2b-256 checksum
How to use checksums
9e050fa49a68bc3763285cebf3876f67e1e8939e4c1fdae62ec10d4c97f5d243
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 26, 2026.

Transparency log

Security for sopel-stocks 2.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sopel_stocks-2.0.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page