From 66f4b5fdf547fae4196a652ee78312fc159950c9 Mon Sep 17 00:00:00 2001 From: Saleh Mir Date: Thu, 18 Apr 2024 01:57:49 +0330 Subject: [PATCH] Fix warmup_finish_timestamp calculation in get_candles function --- jesse/services/candle.py | 1 + 1 file changed, 1 insertion(+) diff --git a/jesse/services/candle.py b/jesse/services/candle.py index 47ce61d3f..3900d46d9 100644 --- a/jesse/services/candle.py +++ b/jesse/services/candle.py @@ -221,6 +221,7 @@ def get_candles( warmup_finish_timestamp = trading_start_date_timestamp warmup_start_timestamp = warmup_finish_timestamp - ( warmup_candles_num * jh.timeframe_to_one_minutes(timeframe) * 60_000) + warmup_finish_timestamp -= 60_000 warmup_candles = _get_candles_from_db(exchange, symbol, warmup_start_timestamp, warmup_finish_timestamp, caching=caching) else: