From 4d31552ae30c3485d2a0758e6edaee4fe96109f2 Mon Sep 17 00:00:00 2001 From: Giorgos Akkogiounoglou <81802463+sdi1400258@users.noreply.github.com> Date: Wed, 31 Jul 2024 14:25:19 +0200 Subject: [PATCH] Update yahoofinance.py (#337) The accepted time intervals for Yahoo Finance are: ["1m", "2m", "5m", "15m", "30m", "60m", "90m", "1h", "1d", "5d", "1w", "1M", "3M"]. However, this statement in yahoofinance.py still asks for "1Min", resulting in a ValueError: Data cleaned at the given time interval is not supported for Yahoo Finance data. --- meta/data_processors/yahoofinance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/data_processors/yahoofinance.py b/meta/data_processors/yahoofinance.py index a9fb3ce0..d6b26dbe 100644 --- a/meta/data_processors/yahoofinance.py +++ b/meta/data_processors/yahoofinance.py @@ -95,7 +95,7 @@ def clean_data(self): trading_days = self.get_trading_days(start=self.start_date, end=self.end_date) if time_interval == "1D": times = trading_days - elif time_interval == "1Min": + elif time_interval == "1m": times = [] for day in trading_days: current_time = pd.Timestamp(day + " 09:30:00").tz_localize(