Skip to main content

yflive v1.0.0

Build Status DeepSource

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)

Source distribution for yflive 1.0.0
File Size Uploaded
yflive-1.0.0.tar.gz 14.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for yflive 1.0.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.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