

yfinance is highly Pythonic in it’s design and incredibly streamlined.

No account creation required, or signing up for and using API keys! yfinance has just 4 dependencies, all of which come with Anaconda anyway, and installs fully in a single line of code. Installation couldn’t be quicker or easier. There are other ways to access the Yahoo Finance data, some free and some paid, and there are certain benefits to some of the options that require paying, like being ensured a degree of maintenance to the solution, but everybody loves free! Returns data directly in pandas dataframes/seriesĪs we have just mentioned yfinance is completely open source and free.High granularity of data (1min/2min/5min data).Yes, yfinance is completely open source and free. In this article we will focus mainly on the yfinance library, but we discuss the overall range of options and other alternative providers in more depth in our parent article, Yahoo Finance API – A Complete Guide. To ensure backwards compatibility, fix-yahoo-finance now imports and uses yfinance anyway, but Ran Aroussi still recommends to install and use yfinance directly. Note you might know of yfinance under it’s old name- fix-yahoo-finance, since it was re-named on May 26th 2019 at the same time that it went over a large overhaul to fix some usability issues. These days a range of unofficial APIs and libraries exist to access the same data, including of course yfinance. Yahoo Finance used to have their own official API, but this was decommissioned on May 15th 2017, following wide-spread misuse of data. It also offers market news, reports and analysis and additionally options and fundamentals data- setting it apart from some of it’s competitors. Yahoo Finance offers an excellent range of market data on stocks, bonds, currencies and cryptocurrencies. Yfinance is a popular open source library developed by Ran Aroussi as a means to access the financial data available on Yahoo Finance.
