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
Release history Release notifications | RSS feed
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.0.0.tar.gz
(9.0 kB
view hashes)
Built Distribution
Close
Hashes for ystreamer-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5c06af8c20f071ee8d28fc1dd36f3bfe625efc3d610e95ab30c9e9185017295 |
|
MD5 | abd51b2cf410d02b7993df9703a6e0cf |
|
BLAKE2b-256 | 814d4a563b39f83f9d2cb89e15bfc7d3ef537dc87f585e3ed09ee089632ea0d1 |