mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-16 12:51:14 +00:00
docs: update outdated comments
This commit is contained in:
@@ -281,8 +281,8 @@ def _download_pair_history(
|
|||||||
"Current End: %s",
|
"Current End: %s",
|
||||||
f"{data.iloc[-1]['date']:{DATETIME_PRINT_FORMAT}}" if not data.empty else "None",
|
f"{data.iloc[-1]['date']:{DATETIME_PRINT_FORMAT}}" if not data.empty else "None",
|
||||||
)
|
)
|
||||||
# used to check if the passed in pair_candles are not as old as since_ms
|
# used to check if the passed in pair_candles (parallel downloaded) covers since_ms.
|
||||||
# if not then we need more data and so we will have to collect more using the typical method
|
# If we need more data, we have to fall back to the standard method.
|
||||||
pair_candles_since_ms = (
|
pair_candles_since_ms = (
|
||||||
dt_ts(pair_candles.iloc[0]["date"])
|
dt_ts(pair_candles.iloc[0]["date"])
|
||||||
if pair_candles is not None and len(pair_candles.index) > 0
|
if pair_candles is not None and len(pair_candles.index) > 0
|
||||||
@@ -296,7 +296,6 @@ def _download_pair_history(
|
|||||||
or erase is True
|
or erase is True
|
||||||
or pair_candles_since_ms > (since_ms if since_ms else 0)
|
or pair_candles_since_ms > (since_ms if since_ms else 0)
|
||||||
):
|
):
|
||||||
# Default since_ms to 30 days if nothing is given
|
|
||||||
new_dataframe = exchange.get_historic_ohlcv(
|
new_dataframe = exchange.get_historic_ohlcv(
|
||||||
pair=pair,
|
pair=pair,
|
||||||
timeframe=timeframe,
|
timeframe=timeframe,
|
||||||
@@ -311,7 +310,7 @@ def _download_pair_history(
|
|||||||
)
|
)
|
||||||
logger.info(f"Downloaded data for {pair} with length {len(new_dataframe)}.")
|
logger.info(f"Downloaded data for {pair} with length {len(new_dataframe)}.")
|
||||||
else:
|
else:
|
||||||
new_dataframe = pair_candles # following clean_ohlcv_dataframe can do the clean up
|
new_dataframe = pair_candles
|
||||||
logger.info(
|
logger.info(
|
||||||
f"Downloaded data for {pair} with length {len(new_dataframe)}. Parallel Method."
|
f"Downloaded data for {pair} with length {len(new_dataframe)}. Parallel Method."
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user