Open gadicc opened 3 years ago
Added quote
module in https://github.com/gadicc/node-yahoo-finance2/compare/e0f8d35f857826d394c6e3e811fc054e53540533...1cbc17a1741392cd29e82f2a9763bbf28007840c, released in v1.6.0.
Created a PR that adds a new module for recommendationsBySymbol
here; https://github.com/gadicc/node-yahoo-finance2/pull/28
New module recommendationsBySymbol
was added in with https://github.com/gadicc/node-yahoo-finance2/pull/28.
@gadicc, would you mind updating the Issue to reflect this since I can't do it myself? 🙏
Thanks, @pudgereyem! Have updated the checklist. Thanks again for all your awesome work on this.
@gadicc Found another endpoint: https://query1.finance.yahoo.com/v7/finance/options/[symbol]
. Not sure if this was found already.
Param Name | Param Type | Required |
---|---|---|
formatted | Boolean | false |
crumb | String | false |
lang | String | false |
region | String | false |
corsDomain
omitted as it does nothing.
Another finding: query1
, query2
, and iquery
are the same. We can fetch from query1.finance.yahoo.com
OR query2.finance.yahoo.com
OR iquery.finance.yahoo.com
for the same data. Probably want to unify what we use in our code, or allow users to choose from each domain.
Hope this helps!
Hey, that's awesome, thanks @PythonCreator27! Have added it to the list in the first post.
And for noticing about the alternative host names, we should indeed accommodate that.
@gadicc Appreciate the creds friend =]
Take a peek at https://github.com/roblav96/robinhood.tools it has some additional sources of financial data n more.
More specifically:
For example:
curl 'https://quoteapi.webull.com/api/quote/tickerRealTimes/full?tickerIds=925334567,925353501,913255891'
Hey @roblav96, great to see you're still involved with all this stuff, and to see you on this new repo!
Thanks for sharing the above. I recall on the original repo too people were looking for additional sources, and I guess we should add this to the README or an FAQ or something, so thank you!
What is your rough breakdown of consumption from Yahoo vs Webull now? Just out of curiosity.
@gadicc Webull provides the best scrapable market data, but they make you work for it. lol Start by exploring the network traffic of https://app.webull.com/
using your web browser's network debug tools.
Another note: recommendationsBySymbol
is using an older version of the endpoint. The newer version is: https://query1.finance.yahoo.com/v7/finance/recommendationsbysymbol/PLUG
. Yahoo's website does seem to use the older version, though. Changing the endpoint, though, would be a definite breaking change. @gadicc Do you think that it is worth it, or should we just create a brand new module for the newer version of the endpoint? The newer endpoint seems to just return a Quote[]
instead of its own response format.
Well found, @PythonCreator27. I would just leave it for now, from what you've said (and thanks for checking this all out!), there doesn't seem to be a compelling reason to upgrade. If something happens to the v6 one, maybe we could switch to v7 but return the results in the same format if that's the only difference (and our validation checks will let us know if we missed anything).
It is something to think about though for all modules. Maybe in future we should name the modules with Yahoo's API version, e.g. recommendationsBySymbol
V7
()
. That would make it easier to cover these kinds of cases without needing to publish a new major version of the library just for one end point. Is a bit verbose though.
In short, I suggest to leave for now and see what other cases come up in the future and then make a call. Thanks for bringing attention to this.
@gadicc Webull provides the best scrapable market data, but they make you work for it. lol Start by exploring the network traffic of
https://app.webull.com/
using your web browser's network debug tools.
Thanks, @roblav96! I've made a start of referencing this (a long with some of the older suggestsions from node-yahoo-finance (v1) issues) on the Wiki: https://github.com/gadicc/node-yahoo-finance2/wiki/Alternative-Sources
I invite anyone to help improve this page with anything useful.
Another finding (endpoint): https://query2.finance.yahoo.com/ws/insights/v2/finance/insights?lang=en-US®ion=US&symbol=AMD&getAllResearchReports=true&reportsCount=2
Insights - seems interesting. I was looking for answers to #138, and found this along the way... Will send a PR soon to add this.
Thanks to the awesome @roblav96 for all this beautiful work back over at https://github.com/pilwon/node-yahoo-finance/issues/43 (in 2017 :sweat_smile:) Have added status [X]'s on each point to track progress, followed by any additional comments below.
As reported by @smeijer in https://github.com/pilwon/node-yahoo-finance/issues/73 (thanks again!) and confirmed by me (and @MichaelDeBoey?), this is no longer required.
Thanks, @pudgereyem, who added on 2021-02-09 in #28.
Thanks, @PythonCreator27, who added this on 2021-02-18 in #66.
Found by @PythonCreator27, more details below in https://github.com/gadicc/node-yahoo-finance2/issues/8#issuecomment-802463467.