commit
e370d635bf
@ -327,6 +327,8 @@ class IStrategy(ABC):
|
|||||||
|
|
||||||
latest_date = dataframe['date'].max()
|
latest_date = dataframe['date'].max()
|
||||||
latest = dataframe.loc[dataframe['date'] == latest_date].iloc[-1]
|
latest = dataframe.loc[dataframe['date'] == latest_date].iloc[-1]
|
||||||
|
# Explicitly convert to arrow object to ensure the below comparison does not fail
|
||||||
|
latest_date = arrow.get(latest_date)
|
||||||
|
|
||||||
# Check if dataframe is out of date
|
# Check if dataframe is out of date
|
||||||
interval_minutes = timeframe_to_minutes(interval)
|
interval_minutes = timeframe_to_minutes(interval)
|
||||||
|
Loading…
Reference in New Issue
Block a user