Skip to content

Commit

Permalink
Update yahoofinance.py (#337)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sdi1400258 authored Jul 31, 2024
1 parent 0f137eb commit 4d31552
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meta/data_processors/yahoofinance.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 4d31552

Please sign in to comment.