Skip to content

Commit

Permalink
Remove --refresh-pairs
Browse files Browse the repository at this point in the history
  • Loading branch information
xmatthias committed Sep 20, 2019
1 parent 7fff1f5 commit 1cd8ed0
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 18 deletions.
2 changes: 1 addition & 1 deletion freqtrade/configuration/arguments.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
ARGS_MAIN = ARGS_COMMON + ARGS_STRATEGY + ["db_url", "sd_notify"]

ARGS_COMMON_OPTIMIZE = ["ticker_interval", "timerange",
"max_open_trades", "stake_amount", "refresh_pairs"]
"max_open_trades", "stake_amount"]

ARGS_BACKTEST = ARGS_COMMON_OPTIMIZE + ["position_stacking", "use_max_market_positions",
"strategy_list", "export", "exportfilename"]
Expand Down
7 changes: 0 additions & 7 deletions freqtrade/configuration/cli_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,6 @@ def __init__(self, *args, **kwargs):
help='Specify stake_amount.',
type=float,
),
"refresh_pairs": Arg(
'-r', '--refresh-pairs-cached',
help='Refresh the pairs files in tests/testdata with the latest data from the '
'exchange. Use it if you want to run your optimization commands with '
'up-to-date data.',
action='store_true',
),
# Backtesting
"position_stacking": Arg(
'--eps', '--enable-position-stacking',
Expand Down
4 changes: 0 additions & 4 deletions freqtrade/configuration/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,6 @@ def _process_optimize_options(self, config: Dict[str, Any]) -> None:

self._process_datadir_options(config)

self._args_to_config(config, argname='refresh_pairs',
logstring='Parameter -r/--refresh-pairs-cached detected ...',
deprecated_msg='-r/--refresh-pairs-cached will be removed soon.')

self._args_to_config(config, argname='strategy_list',
logstring='Using strategy list of {} strategies', logfun=len)

Expand Down
1 change: 0 additions & 1 deletion freqtrade/data/dataprovider.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ def historic_ohlcv(self, pair: str, ticker_interval: str = None) -> DataFrame:
"""
return load_pair_history(pair=pair,
ticker_interval=ticker_interval or self._config['ticker_interval'],
refresh_pairs=False,
datadir=Path(self._config['datadir'])
)

Expand Down
2 changes: 0 additions & 2 deletions freqtrade/optimize/backtesting.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,6 @@ def start(self) -> None:
datadir=Path(self.config['datadir']),
pairs=pairs,
ticker_interval=self.ticker_interval,
refresh_pairs=self.config.get('refresh_pairs', False),
exchange=self.exchange,
timerange=timerange,
)

Expand Down
2 changes: 1 addition & 1 deletion freqtrade/optimize/edge_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(self, config: Dict[str, Any]) -> None:
self.strategy = StrategyResolver(self.config).strategy

self.edge = Edge(config, self.exchange, self.strategy)
self.edge._refresh_pairs = self.config.get('refresh_pairs', False)
self.edge._refresh_pairs = False

self.timerange = TimeRange.parse_timerange(None if self.config.get(
'timerange') is None else str(self.config.get('timerange')))
Expand Down
2 changes: 0 additions & 2 deletions freqtrade/optimize/hyperopt.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,6 @@ def start(self) -> None:
datadir=Path(self.config['datadir']),
pairs=self.config['exchange']['pair_whitelist'],
ticker_interval=self.backtesting.ticker_interval,
refresh_pairs=self.config.get('refresh_pairs', False),
exchange=self.backtesting.exchange,
timerange=timerange
)

Expand Down

0 comments on commit 1cd8ed0

Please sign in to comment.