fix: Update resample rule format from 'T' to 'min' in t_sunnyband.py
This commit is contained in:
parent
cbc08d7772
commit
7a72cdf83b
@ -76,7 +76,7 @@ def get_stock_data(ticker: str, start_date: datetime, end_date: datetime, interv
|
||||
# Resample to desired interval
|
||||
df.set_index('date', inplace=True)
|
||||
minutes = minutes_map[interval]
|
||||
rule = f'{minutes}T'
|
||||
rule = f'{minutes}min'
|
||||
|
||||
df = df.resample(rule).agg({
|
||||
'open': 'first',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user