Skip to main content

Sopel Stocks Plugin

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

Python Tests PyPI version Total alerts Language grade: Python

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


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.2.4.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_modules.stocks-1.2.4-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file sopel_modules_stocks-1.2.4.tar.gz.

File metadata

  • Download URL: sopel_modules_stocks-1.2.4.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for sopel_modules_stocks-1.2.4.tar.gz
Algorithm Hash digest
SHA256 ebe1386df576bd33da548c9c4a9706f2a7e0dcc84feeaa39e50160e1ae772faa
MD5 003c1ce4e4e6537af26395af26b16c79
BLAKE2b-256 ce246ac99dbe909417cac340ee4b0bfbb92909ccf3390bad20a1cda1593ec447

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sopel_modules.stocks-1.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d776e8aaa8a4faf017d5c4782f804cd3c172a9c9b89b3815c4bdd012bac455e3
MD5 4eb9f3fc673f134ef01950609980ba84
BLAKE2b-256 fe4fd037854d68ffef1484542ecd04e01a127abcffba82ae03c3fd8dbe2ed0b9

See more details on using hashes here.

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