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 hashes)

Uploaded source

Built Distribution

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

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page