Skip to main content

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

Release files for stocklib 2.1.1

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

Source distribution (sdist)

Source distribution for stocklib 2.1.1
File Size Uploaded
stocklib-2.1.1.tar.gz 2.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for stocklib 2.1.1
File Interpreter ABI Platform
stocklib-2.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 4.5 kB

Release files / stocklib-2.1.1.tar.gz

Download URL stocklib-2.1.1.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7167a3d0c3addecc6f26210d55f999901ab181b726cbff2c1a24f515f3245eef
BLAKE2b-256 checksum
How to use checksums
682e47a5eb993f6628e2c145f315012584cf8b15d0768062a2be8c88a49f9e2f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.4

Release files / stocklib-2.1.1-py3-none-any.whl

Download URL stocklib-2.1.1-py3-none-any.whl
Size 2.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9ad1d5fbbc753bea4a27e320b3312c88347a7891ee562b68c179240e93d8aff6
BLAKE2b-256 checksum
How to use checksums
3e9cda1c0cf94d562831d6fabb2f9147ae1514a17bc5dc815011e9958203a8c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.4

Release history Release notifications | RSS feed

This release

2.1.1 This release

2 release files

2.1.0

2 release files

1.0.0

2 release files

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