Fetching financial data for technical & fundamental analysis and algorithmic trading from a variety of python packages and sources.
This repository includes a number of libraries and short examples to demonstrate how we can pull financial data(mostly for equities). It's basically everything you need to get that financial data and start performing analysis/building algorithms on top of that.
Seperate notebook for each different library has been included -
Get Your API Key here - https://www.alphavantage.co/support/#api-key
Get your API Key here - https://financialmodelingprep.com/developer/docs/
We never know which one goes out of support, at what time. For example, pandas datareader used to be the most popular choice once, but it stopped supporting Yahoo finance API, therefore, it became outdated.
I personally prefer yfinance for technical analysis, because it has an easy-to-use API and very convenient most of the times.
For Fundamental analysis, FundamentalAnalysis package is the best, as it requires no data cleaning and can be used directly to get detailed financial statements of a company, however it has coverage limitations and doesn't cover a lot many stock exchanges, so you can choose between Web Scraping and FundamentalAnalysis package as per your requirement.