Skip to main content

Get real-time stock data!

Project description

Stocklib

Stocklib is a library for getting stock data!

Installation:

pip install stocklib

Usage:

>>> from stocklib import get_stock_price
>>> get_stock_price(ticker="AAPl")
146.5

What's New?

Bug fixes and performance improvements
Stocklib now has ticker types. Ticker types are for getting new types of assets, like cryptocurrencies. To use a ticker type:
>>> from stocklib import get_stock_price
>>> get_stock_price(ticker="BTC", tickerType="crypto")
28942.4
>>> # NOTE: tickerType is defaulted to "stock"

NOTE: Stocklib is new, so there are very few features

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

stocklib-2.1.1.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

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

stocklib-2.1.1-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file stocklib-2.1.1.tar.gz.

File metadata

  • Download URL: stocklib-2.1.1.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for stocklib-2.1.1.tar.gz
Algorithm Hash digest
SHA256 7167a3d0c3addecc6f26210d55f999901ab181b726cbff2c1a24f515f3245eef
MD5 5bd498a730b6a016d293485a4d56108a
BLAKE2b-256 682e47a5eb993f6628e2c145f315012584cf8b15d0768062a2be8c88a49f9e2f

See more details on using hashes here.

File details

Details for the file stocklib-2.1.1-py3-none-any.whl.

File metadata

  • Download URL: stocklib-2.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for stocklib-2.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9ad1d5fbbc753bea4a27e320b3312c88347a7891ee562b68c179240e93d8aff6
MD5 ab0b59d71c02d3a45ce7406baf1cd439
BLAKE2b-256 3e9cda1c0cf94d562831d6fabb2f9147ae1514a17bc5dc815011e9958203a8c0

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