AI4Finance-Foundation / FinRL

FinRL: Financial Reinforcement Learning. 🔥
https://ai4finance.org
MIT License
9.36k stars 2.27k forks source link

YahooFinanceProcessor failure to download the market data #1237

Open randheerDas opened 1 month ago

randheerDas commented 1 month ago

I am running the latest version of FinRL_PortfolioAllocation_NeurIPS_2020 from the FinRl-Tutorials repository. https://github.com/AI4Finance-Foundation/FinRL-Tutorial

I am facing an issue while executing the code to download market data.

Following is the error:

1 Failed download: ['AXP']: Exception('%ticker%: No price data found, symbol may be delisted (1d 2008-01-01 00:00:00 -> 2008-01-02 00:00:00)')

And this keeps repeating and it never ends.

I feel there is a bug here either in finrl or in yfinance. My old tutorial runs well.

Following is my current configuration:

Python 3.10 , Finrl = finrl-0.3.6 and yfinance-0.2.38

Could someone from the FinRl Team help me on this? I am working towards giving a demonstration to our team.

Screenshot

image

dytsou commented 2 weeks ago

Since the days you listed are weekends, so it wouldn't have data for sure.

Axacon-eks commented 2 weeks ago

I have the same issue. Regardless of the dates. Yahoo Finance integration seems to be broken. I have no problem using Yahoo Finance outside of FinRL. Also tried on single tickers, it does not work.