Open roblav96 opened 7 years ago
@roblav96 Thanks for the excellent info. It might help @gadicc with his PR #42!
@roblav96 Just wanted to second the thanks for this info. The Yahoo stock quote CSV API at http://download.finance.yahoo.com/d/quotes.csv?s=FOO,BAR has been giving a '999 Request Denied' error since yesterday. The 'Multiple Symbol Quote' URL above was invaluable in getting my quotes going again.
@roblav96 that search autocomplete is priceless, I can't thank you enough!
here are some more links I found while I was looking for chart img (sadly I haven't found it yet)
spark data to generate .svg or canvas image chart (maybe with css can also draw charts Idk), example DJI: https://query1.finance.yahoo.com/v7/finance/spark?symbols=%5EDJI with specific timeframe: https://query1.finance.yahoo.com/v7/finance/spark?symbols=%5EDJI&range=1d&interval=5m&indicators=close&includeTimestamps=false&includePrePost=false
...and to complete your daily gainers link:
most active (vol): https://query1.finance.yahoo.com/v1/finance/screener/predefined/saved?formatted=false&lang=en-US®ion=US&scrIds=most_actives&count=5
top options open interest: https://query2.finance.yahoo.com/v1/finance/screener/predefined/saved?formatted=false&lang=en-US®ion=US&scrIds=65f51cea-8dc8-4e56-9f99-6ef7720eb69c&count=5
top options implied volatility: https://query2.finance.yahoo.com/v1/finance/screener/predefined/saved?formatted=false&lang=en-US®ion=US&scrIds=671c40b0-5ea8-4063-89b9-9db45bf9edf0&count=5
thats it, have fun.
@roblav96, thank you so much for all your time figuring this out and sharing it with us! Sorry I'm 3.5 years late :sweat_smile:
As per #75 I've started some work on all this. You might get some credit mentions :)
Hey man, love what you're doing here. I've been reverse engineering Yahoo's API recently and thought I'd provide some of my findings.
Crum Manager
sstrickx/yahoofinance-api @sstrickx wrote a crum manager in Java.
Recommended Symbols
GET
https://query1.finance.yahoo.com/v6/finance/recommendationsbysymbol/PLUG
Daily Gainers
GET
https://query2.finance.yahoo.com/v1/finance/screener/predefined/saved?formatted=false&lang=en-US®ion=US&scrIds=day_gainers&count=5&corsDomain=finance.yahoo.com
Search Autocomplete
GET
https://autoc.finance.yahoo.com/autoc?query=PLUG®ion=1&lang=en
Symbol Conversations
GET
https://finance.yahoo.com/_finance_doubledown/api/resource/canvass.getMessageList;count=20;oauthConsumerKey=finance.oauth.client.canvass.prod.consumerKey;oauthConsumerSecret=finance.oauth.client.canvass.prod.consumerSecret;query=namespace = "yahoo_finance" and (tag = "PLUG");region=US;sortBy=createdAt;userActivity=true
Symbol News
GET
http://feeds.finance.yahoo.com/rss/2.0/headline?s=PLUG®ion=US&lang=en-US
Returns inRSS
format, couldn't figure out how to getJSON
.Multiple Symbol Quote
GET
https://query2.finance.yahoo.com/v7/finance/quote?symbols=NVDA,PLUG,AMD
Multiple Symbol Historical Charts
GET
https://query1.finance.yahoo.com/v7/finance/spark?symbols=PLUG,AMD&range=1d&formated=true
Only returnsclose
data though =/Trending Symbols
GET
https://query1.finance.yahoo.com/v1/finance/trending/US?lang=en-US®ion=US&count=5&corsDomain=finance.yahoo.com
Live Streamer
console.log('sendi >', JSON.stringify(sendi, null, 4))
Hope you find this helpful!