santoshlite / Empyrial

An Open Source Portfolio Backtesting Engine for Everyone | 面向所有人的开源投资组合回测引擎
https://empyrial.gitbook.io/empyrial/
MIT License
916 stars 124 forks source link

RemoteDataError: No data fetched using 'YahooDailyReader' #29

Closed santoshlite closed 3 years ago

santoshlite commented 3 years ago

Discussed in https://github.com/ssantoshp/Empyrial/discussions/27

Originally posted by **karim1104** July 3, 2021 Starting July 1, I'm getting the error "RemoteDataError: No data fetched using 'YahooDailyReader'". I've tried it in different Python environments (3.6, 3.8, 3.9). It seems like a Pandas DataReader issue (https://github.com/pydata/pandas-datareader/issues/868) How can we resolve this? I have a subscription to FMP, is there a way I use instead of Yahoo Finance?
santoshlite commented 3 years ago

Hi,

Are you sure you are using Empyrial 1.9.0 (this one fixes the bug)? If yes and you still get this error, I'd like to see the code you are running in order to reproduce the error, please 🙏

santoshlite commented 3 years ago

@karim1104 ?

karim1104 commented 3 years ago

Sorry Santosh, I must have missed your comment. I'll test version 1.9.0 and revert with feedback.

santoshlite commented 3 years ago

No problem :) By the way, there was a bug on 1.9.0 so you should try with 1.9.1

karim1104 commented 3 years ago

Upgraded Empyrial to version 1.9.1 and tested in Python 3.9.5, everything seems to be working great. Thank you very much Santosh!

santoshlite commented 3 years ago

Nice :)