Skip to main content

Stock lookup plugin for Sopel IRC bots

Project description

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.

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_stocks-2.0.0.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sopel_stocks-2.0.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file sopel_stocks-2.0.0.tar.gz.

File metadata

  • Download URL: sopel_stocks-2.0.0.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

Hashes for sopel_stocks-2.0.0.tar.gz
Algorithm Hash digest
SHA256 08b8d4fafb4f588763b660f973e0605c274d43b0ba9baa1a9158d3ccbcc2b28b
MD5 3556ad0cfa8bf7ae71d559707787670b
BLAKE2b-256 95fede86426ee42dfa17e6f61ea0661f3d703f681cd7b2f26fe5543fbc0e080f

See more details on using hashes here.

Provenance

The following attestation bundles were made for sopel_stocks-2.0.0.tar.gz:

Publisher: python-publish.yml on sopel-irc/sopel-stocks

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sopel_stocks-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: sopel_stocks-2.0.0-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

Hashes for sopel_stocks-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d43d70a16956286f77f4505f7abc7e6d0469a8aae8b5b2565c8d436aa2266fd5
MD5 e123065a339b8c1c4c73aa316ce866e4
BLAKE2b-256 6a2f5fea032cf416c223e453b6e9cd3332542e2bb8b218f97a7e03d94c57f185

See more details on using hashes here.

Provenance

The following attestation bundles were made for sopel_stocks-2.0.0-py3-none-any.whl:

Publisher: python-publish.yml on sopel-irc/sopel-stocks

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page