Live market data from Yahoo! Finance websocket
Project description
Live from Yahoo Finance
Get market data from Yahoo Finance websocket in near-real time. wss://streamer.finance.yahoo.com/
Setup
pip install yliveticker
Example
import yliveticker
# this function is called on each ticker update
def on_new_msg(msg):
print(msg)
yliveticker.YLiveTicker(on_ticker=on_new_msg, ticker_names=[
"BTC=X", "^GSPC", "^DJI", "^IXIC", "^RUT", "CL=F", "GC=F", "SI=F", "EURUSD=X", "^TNX", "^VIX", "GBPUSD=X", "JPY=X", "BTC-USD", "^CMC200", "^FTSE", "^N225"])
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
yliveticker-test-0.2.5.tar.gz
(5.9 kB
view hashes)
Built Distribution
Close
Hashes for yliveticker_test-0.2.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4f52ee99054f48f33d7de2a9e2db375b69b3170e72376136a6b690c98d75016 |
|
MD5 | eab90b661d2fc343167a9202a9df426f |
|
BLAKE2b-256 | 7b42e4d63552f2976b07e8219d963d69c8a70c067dd1a32825826f2142370202 |