Skip to content

Commit 4d31552

Browse files
authored
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.
1 parent 0f137eb commit 4d31552

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

meta/data_processors/yahoofinance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def clean_data(self):
9595
trading_days = self.get_trading_days(start=self.start_date, end=self.end_date)
9696
if time_interval == "1D":
9797
times = trading_days
98-
elif time_interval == "1Min":
98+
elif time_interval == "1m":
9999
times = []
100100
for day in trading_days:
101101
current_time = pd.Timestamp(day + " 09:30:00").tz_localize(

0 commit comments

Comments
 (0)