yflive v1.0.0
yflive is a Yahoo! Finance live data streamer. Originally created as an alternative to scraping prices of Yahoo! Finance, yflive implements a websocket client for receiving live quotes from Yahoo! Finance directly.
For historic prices or other financial information, yfinance is recommended.
Installation
Use the package manager pip to install yflive.
pip install yflive
Usage
Quick start
The following example shows a simple setup, which subscribes to the tickers AAPL and TSLA and prints received quotes until interrupted.
from yflive import QuoteStreamer
qs = QuoteStreamer()
qs.subscribe(["AAPL", "TSLA"])
qs.on_quote = lambda qs, q: print(q)
# Non-blocking if should_thread=True (default is False)
qs.start(should_thread=False)
Quotes are in real time (with exceptions) and normally only available during trading hours.
For additional information regarding Yahoo! Finance data, please refer to their section on data accuracy found here.
Collaboration
This is very early stage
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
yflive is distributed under the Apache-2.0 License. Review LICENSE.txt for further information.
Metadata
Release files for yflive 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| yflive-1.0.0.tar.gz | 14.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| yflive-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 32.4 kB
Release files / yflive-1.0.0.tar.gz
| Download URL | yflive-1.0.0.tar.gz |
|---|---|
| Size | 14.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dfb90d6a8aa36aa408cf7aca47394d6c49d6f3569599ac16ebd218b396ea5bd4
|
|
BLAKE2b-256 checksum How to use checksums |
c4ee4e80d980b120c4d4338136232c8ed5a95dc77654b7c25c22b31e0fe10cdb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
|
Release files / yflive-1.0.0-py3-none-any.whl
| Download URL | yflive-1.0.0-py3-none-any.whl |
|---|---|
| Size | 17.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
94a22eaffe929f54611520bf07a02bf616c6dd0e7c75dde278606da205ded320
|
|
BLAKE2b-256 checksum How to use checksums |
67e4423f9f7e3d7391aeb0a1ae41aa774673a5a8632e87ec3f5a2b7f066a4b3d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
|