Error: No data found for this date range, symbol may be delisted
I am following the example shown in README, but I am getting no data found error.
I am running python 3.11 in Windows and have installed pandas datareader and finance.
The MWE is given below:
import yfinance as yf
import pandas_datareader
import sys
data = yf.download("SPY AAPL", start="2017-01-01", end="2017-04-30")
print(yf.__version__) # '0.1.87'
print(pandas_datareader.__version__) # '0.10.0'
print(sys.version) # 3.11.0 (main, Oct 24 2022, 18:26:48) [MSC v.1933 64 bit (AMD64)]
Output:
[*********************100%***********************] 2 of 2 completed
2 Failed downloads:
- AAPL: No data found for this date range, symbol may be delisted
- SPY: No data found for this date range, symbol may be delisted
0.1.87
0.10.0
3.11.0 (main, Oct 24 2022, 18:26:48) [MSC v.1933 64 bit (AMD64)]
@bhishanpdl I believe if you RTM and review the version documents they say this works with 3.6 and sometimes with 3.7.
@datatalking Thanks for insights, i will create a new environment with python 3.7 and test the module. If it works that would be great.
@bhishanpdl was the issue resolved with python 3.7? FWI 3.7 has been depricated so many of us moved to 3.8 or 3.9. If you are doing algo trading there is a growing group who share code but we have our own data, are you open to collaboration?