mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-13 00:23:25 +08:00
exchange: make sure last_entry is set to recompute end
This commit is contained in:
@@ -462,7 +462,7 @@ class ExchangeBundle:
|
||||
(earliest_trade is not None and earliest_trade > start):
|
||||
start = earliest_trade
|
||||
|
||||
if end is None or (last_entry is not None and end > last_entry):
|
||||
if last_entry is not None and (end is None or end > last_entry):
|
||||
end = last_entry.replace(minute=59, hour=23) \
|
||||
if data_frequency == 'minute' else last_entry
|
||||
|
||||
|
||||
Reference in New Issue
Block a user