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-0.2.4.tar.gz
(5.9 kB
view hashes)
Built Distribution
Close
Hashes for yliveticker-0.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b69b7a180e0b79391242ca7bed9b4a67c99cd5e37d563c57b739a95cfe7adf9e |
|
MD5 | b7d3ff0581bb9e4d61b53edd0e14a120 |
|
BLAKE2b-256 | 8c22ede49468df0ee2e3ab619341fb784445efdfb259607cde3029cfc338395c |