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.1.tar.gz
(5.9 kB
view hashes)
Built Distribution
Close
Hashes for yliveticker_test-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59ed84e8f758ab195dc8e028c802114ee5f2479c9cab804b4e77091abf34d348 |
|
MD5 | 64cc1ac38342813652a1b8bc38430a4f |
|
BLAKE2b-256 | f5db0b98e2a67ecaf569ba96cb6aedcc1f79caf9429f0324a4e598cd620d4670 |