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.1.0.tar.gz
(9.1 kB
view hashes)
Built Distribution
Close
Hashes for ystreamer-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6feeaec096fcd72ea5bdb865c65e9bad2552fbe6d8bf8258323ff367cfc697d |
|
MD5 | 32cd62dc3f155a273773ff4553e3db5c |
|
BLAKE2b-256 | cc20d7ed953ffd20a1cd02570681e99595cd049c46b48ba7fd6424246b401603 |