eohne / YFinance.jl

Download historical stock market data from Yahoo Finance. Exposes stock, commodity, futures, currency (FX), mutual fund, and ETF prices, stock fundamental, summary data , and options data.

Home Page:https://eohne.github.io/YFinance.jl/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Question] `yfinance decrypt` Issue Parity with Python Equivalent

RaSi96 opened this issue · comments

Greetings everyone,

At the outset I would like to thank eohne for bringing this functionality to Julia!

I noticed that this repo has been created quite recently, and therefore probably not enough time has passed for this to be an issue yet: periodically, Python's yfinance equivalent seems to face problems with response decryption. Most recently in the pinned issue, yahooquery seems to have been recommended as an alternative since it uses unofficial Yahoo Finance API frontends to retrieve its data.

After glancing over the source code for YFinance.jl, it appears to me that here we are authenticating the connection before pulling data. My question thus is: how does YFinance.jl fare in this regard? Is it more aligned with Python's yfinance in terms of web scraping, or with yahooquery owing to its proxy/authentication facilities?

My apologies for not understanding this completely and for what might seem an uninformed question, but any input is appreciated. Thanks once again for this Julia package, and for your time.

EDIT: clarified question a little more.

Hi @RaSi96

Thanks a lot for your question.

The way that data is pulled is really based on yahooquery rather than the python yfinance package.

The yahooquery way sends a request directly to the "unofficial" yahoo api that is called by the yahoo finance website and returns a JSON object , while the python yfinance way returns a html page that contains the information pulled from the "unofficial" yahoo finance api where information has to be cut out - much less efficient (at least for fundamental data etc.).

While yahooquery offers a way for premium users to sign in and access premium features/data this package does not currently offer this functionality. Although I think that would be a logical extension for future updates.

Not entirely sure if this answered your question but I hope it did.

Thanks for responding @eohne! After getting a few more hours of use in with your package, I concur that YFinance.jl does indeed function very similarly to yahooquery. Appreciate your time, I'll be closing this issue.