Hello is it possible to create a cheap little course on pulling finace data from yahoo finance such as PE ratio , Return on investment etc, key numbers from there yearly income statment. Ideally it would be good to pull multiple companies into a dataframe and then create filters based on certain thresholds
Something along these lines…
Regards
Hi Stephen,
You can check the below blogs for pulling data.
1. https://blog.quantinsti.com/quantitative-value-investing-strategy-python/
2. https://blog.quantinsti.com/stock-market-data-analysis-python/
3. https://blog.quantinsti.com/fundamental-sentiment-analysis-data/
Thanks
thank you ill check this out , is there a way to pull in the whole SP500 or dow for example or do you need to type in all individual ticker names you think?
You can use read_html on the wiki page to get all tickers that make up SP500. A sample code is shown below.
import yfinance as yf
import pandas as pd
tickers = pd.read_html(
'https://en.wikipedia.org/wiki/List_of_S%26P_500_companies')[0]
data = yf.download(tickers.Symbol.to_list()[:3],'2021-1-1','2021-4-28', auto_adjust=True)['Close']
data.head()
Thanks
Hi Stephen, We just launched a course on market data. We have covered stock fundamental data in it. The link to the course is below.
Quantra by QuantInsti | Courses on Algorithmic and Quantitative Trading