semvec/pypi-packages huggingface dataset:
ystreamer 1.1.0
API to interact with Yahoo Finance Websocket API
License: Apache 2.0

# 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)
```