Remove startup_candles argument in refresh_data
This commit is contained in:
parent
b2796f99b6
commit
1537389617
@ -206,7 +206,6 @@ def refresh_data(datadir: Path,
|
|||||||
pairs: List[str],
|
pairs: List[str],
|
||||||
exchange: Exchange,
|
exchange: Exchange,
|
||||||
timerange: Optional[TimeRange] = None,
|
timerange: Optional[TimeRange] = None,
|
||||||
startup_candles: int = 0,
|
|
||||||
) -> None:
|
) -> None:
|
||||||
"""
|
"""
|
||||||
Refresh ticker history data for a list of pairs.
|
Refresh ticker history data for a list of pairs.
|
||||||
@ -216,11 +215,7 @@ def refresh_data(datadir: Path,
|
|||||||
:param pairs: List of pairs to load
|
:param pairs: List of pairs to load
|
||||||
:param exchange: Exchange object
|
:param exchange: Exchange object
|
||||||
:param timerange: Limit data to be loaded to this timerange
|
:param timerange: Limit data to be loaded to this timerange
|
||||||
:param startup_candles: Additional candles to load at the start of the period
|
|
||||||
"""
|
"""
|
||||||
if startup_candles > 0 and timerange:
|
|
||||||
logger.info(f'Using indicator startup period: {startup_candles} ...')
|
|
||||||
|
|
||||||
for pair in pairs:
|
for pair in pairs:
|
||||||
_download_pair_history(pair=pair, timeframe=timeframe,
|
_download_pair_history(pair=pair, timeframe=timeframe,
|
||||||
datadir=datadir, timerange=timerange,
|
datadir=datadir, timerange=timerange,
|
||||||
|
@ -101,7 +101,6 @@ class Edge:
|
|||||||
exchange=self.exchange,
|
exchange=self.exchange,
|
||||||
timeframe=self.strategy.ticker_interval,
|
timeframe=self.strategy.ticker_interval,
|
||||||
timerange=self._timerange,
|
timerange=self._timerange,
|
||||||
startup_candles=self.strategy.startup_candle_count,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
data = history.load_data(
|
data = history.load_data(
|
||||||
|
Loading…
Reference in New Issue
Block a user