As Lewis mentioned above yfinance has rate limits to prevent abuse. What you are trying to achieve can be done without using the API. I have spent quite an amount of time working on alternatives. Please feel free to check out the python code on my github. It offers something similar to what you're looking for and also has a UI for easy use. https://github.com/GerC97/Yahoo-Finance-Data-Python-UI