File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1919from freqtrade .exchange import Exchange
2020from freqtrade .plugins .pairlist .pairlist_helpers import dynamic_expand_pairlist
2121from freqtrade .util import dt_now , dt_ts , format_ms_time
22+ from freqtrade .util .datetime_helpers import format_ms_time_det
2223from freqtrade .util .migrations import migrate_data
2324from freqtrade .util .progress_tracker import CustomProgress , retrieve_progress_tracker
2425
@@ -431,11 +432,11 @@ def _download_trades_history(
431432 # DEFAULT_TRADES_COLUMNS: 0 -> timestamp
432433 # DEFAULT_TRADES_COLUMNS: 1 -> id
433434
434- if not trades .empty and since > 0 and since < trades .iloc [0 ]["timestamp" ]:
435+ if not trades .empty and since > 0 and ( since + 1000 ) < trades .iloc [0 ]["timestamp" ]:
435436 # since is before the first trade
436437 raise ValueError (
437- f"Start { format_ms_time (since )} earlier than "
438- f"available data ({ trades .iloc [0 ]['date' ]:{ DATETIME_PRINT_FORMAT } } ). "
438+ f"Start { format_ms_time_det (since )} earlier than "
439+ f"available data ({ format_ms_time_det ( trades .iloc [0 ]['timestamp' ]) } ). "
439440 f"Please use `--erase` if you'd like to redownload { pair } ."
440441 )
441442
You can’t perform that action at this time.
0 commit comments