Skip to content

Commit

Permalink
Fix warmup_finish_timestamp calculation in get_candles function
Browse files Browse the repository at this point in the history
  • Loading branch information
saleh-mir committed Apr 17, 2024
1 parent ea67760 commit 66f4b5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jesse/services/candle.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 66f4b5f

Please sign in to comment.