Skip to main content

API to interact with Yahoo Finance Websocket API

Project description

ystreamer

A Python libary to interact with the Yahoo Finance Websocket Based on protobuf definition from https://github.com/yahoofinancelive/yliveticker

Example

from ystreamer import YahooStreamer
import time

def on_data(data):
    print(data)

stream = YahooStreamer(["AAPL", "MSFT"], on_data)
stream.start()

# Stream continues to run in the background so must wait indefinately 
# or the program will exit
while True:
    time.sleep(1)

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

ystreamer-1.1.0.tar.gz (9.1 kB view hashes)

Uploaded source

Built Distribution

ystreamer-1.1.0-py3-none-any.whl (9.1 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