Remove deprecated pairlist and binary
This commit is contained in:
parent
1761f5af1a
commit
d1a24db6b7
@ -1,11 +0,0 @@
|
|||||||
#!/usr/bin/env python3
|
|
||||||
|
|
||||||
import sys
|
|
||||||
import logging
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
logger.error("DEPRECATED installation detected, please run `pip install -e .` again.")
|
|
||||||
|
|
||||||
sys.exit(2)
|
|
@ -24,3 +24,9 @@ and in freqtrade 2019.7 (master branch).
|
|||||||
`--live` in the context of backtesting allowed to download the latest tick data for backtesting.
|
`--live` in the context of backtesting allowed to download the latest tick data for backtesting.
|
||||||
Did only download the latest 500 candles, so was ineffective in getting good backtest data.
|
Did only download the latest 500 candles, so was ineffective in getting good backtest data.
|
||||||
Removed in 2019-7-dev (develop branch) and in freqtrade 2019-8 (master branch)
|
Removed in 2019-7-dev (develop branch) and in freqtrade 2019-8 (master branch)
|
||||||
|
|
||||||
|
### Allow running multiple pairlists in sequence
|
||||||
|
|
||||||
|
The former `"pairlists"` section in the configuration has been removed, and is replaced by `pairlist` - being a list to specify a sequence of pairlists.
|
||||||
|
|
||||||
|
The old option has been deprecated in 2019.11 and has been removed in 2020.4.
|
||||||
|
@ -58,29 +58,6 @@ def process_temporary_deprecated_settings(config: Dict[str, Any]) -> None:
|
|||||||
process_deprecated_setting(config, 'ask_strategy', 'ignore_roi_if_buy_signal',
|
process_deprecated_setting(config, 'ask_strategy', 'ignore_roi_if_buy_signal',
|
||||||
'experimental', 'ignore_roi_if_buy_signal')
|
'experimental', 'ignore_roi_if_buy_signal')
|
||||||
|
|
||||||
if not config.get('pairlists') and not config.get('pairlists'):
|
|
||||||
config['pairlists'] = [{'method': 'StaticPairList'}]
|
|
||||||
logger.warning(
|
|
||||||
"DEPRECATED: "
|
|
||||||
"Pairlists must be defined explicitly in the future."
|
|
||||||
"Defaulting to StaticPairList for now.")
|
|
||||||
|
|
||||||
if config.get('pairlist', {}).get("method") == 'VolumePairList':
|
|
||||||
logger.warning(
|
|
||||||
"DEPRECATED: "
|
|
||||||
f"Using VolumePairList in pairlist is deprecated and must be moved to pairlists. "
|
|
||||||
"Please refer to the docs on configuration details")
|
|
||||||
pl = {'method': 'VolumePairList'}
|
|
||||||
pl.update(config.get('pairlist', {}).get('config'))
|
|
||||||
config['pairlists'].append(pl)
|
|
||||||
|
|
||||||
if config.get('pairlist', {}).get('config', {}).get('precision_filter'):
|
|
||||||
logger.warning(
|
|
||||||
"DEPRECATED: "
|
|
||||||
f"Using precision_filter setting is deprecated and has been replaced by"
|
|
||||||
"PrecisionFilter. Please refer to the docs on configuration details")
|
|
||||||
config['pairlists'].append({'method': 'PrecisionFilter'})
|
|
||||||
|
|
||||||
if (config.get('edge', {}).get('enabled', False)
|
if (config.get('edge', {}).get('enabled', False)
|
||||||
and 'capital_available_percentage' in config.get('edge', {})):
|
and 'capital_available_percentage' in config.get('edge', {})):
|
||||||
logger.warning(
|
logger.warning(
|
||||||
|
@ -1041,18 +1041,6 @@ def test_process_temporary_deprecated_settings(mocker, default_conf, setting, ca
|
|||||||
assert default_conf[setting[0]][setting[1]] == setting[5]
|
assert default_conf[setting[0]][setting[1]] == setting[5]
|
||||||
|
|
||||||
|
|
||||||
def test_process_deprecated_setting_pairlists(mocker, default_conf, caplog):
|
|
||||||
patched_configuration_load_config_file(mocker, default_conf)
|
|
||||||
default_conf.update({'pairlist': {
|
|
||||||
'method': 'VolumePairList',
|
|
||||||
'config': {'precision_filter': True}
|
|
||||||
}})
|
|
||||||
|
|
||||||
process_temporary_deprecated_settings(default_conf)
|
|
||||||
assert log_has_re(r'DEPRECATED.*precision_filter.*', caplog)
|
|
||||||
assert log_has_re(r'DEPRECATED.*in pairlist is deprecated and must be moved*', caplog)
|
|
||||||
|
|
||||||
|
|
||||||
def test_process_deprecated_setting_edge(mocker, edge_conf, caplog):
|
def test_process_deprecated_setting_edge(mocker, edge_conf, caplog):
|
||||||
patched_configuration_load_config_file(mocker, edge_conf)
|
patched_configuration_load_config_file(mocker, edge_conf)
|
||||||
edge_conf.update({'edge': {
|
edge_conf.update({'edge': {
|
||||||
|
Loading…
Reference in New Issue
Block a user