API to interact with Yahoo Finance Websocket API
A Python libary to interact with the Yahoo Finance Websocket Based on protobuf definition from https://github.com/yahoofinancelive/yliveticker
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)
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for ystreamer-1.1.0-py3-none-any.whl