mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Merge pull request #456 from jblestang/fix_old_dataframe_detection_for_longer_tickers
Fixing wrong 'old dataframe detection mechanism' for long tickers
This commit is contained in:
commit
aae8044150
|
@ -112,7 +112,7 @@ def get_signal(pair: str, interval: int) -> (bool, bool):
|
|||
|
||||
# Check if dataframe is out of date
|
||||
signal_date = arrow.get(latest['date'])
|
||||
if signal_date < arrow.now() - timedelta(minutes=10):
|
||||
if signal_date < arrow.now() - timedelta(minutes=(interval + 5)):
|
||||
logger.warning('Too old dataframe for pair %s', pair)
|
||||
return (False, False) # return False ?
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user