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.3.2.tar.gz
(5.9 kB
view hashes)
Built Distribution
Close
Hashes for yliveticker_test-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f017231593561eb7c76bf253771f18681b1a784d30063ca42d0b4bd9d613342 |
|
MD5 | 2e125b9d65d0d4d244e99e76c6d3c482 |
|
BLAKE2b-256 | 11a423eb3cdbf34a935d7a497f6ff8375af1220eedadc4166a7f67694960440b |