Repository: freqtrade/freqtrade

Issue:
Freqtrade bot cannot run - Error - cannot find pairlist
## Step 1: Have you search for this issue before posting it?
Yes

## Step 2: Describe your environment

  * Operating system: Ubuntu 18.04.3 (LTS) x64
  * Python Version: Python 2.7.15 (`python -V`)
  * CCXT version: _____ (`pip freeze | grep ccxt`)
  * Branch: Develop
  * Last Commit ID: cab748588cdb5dfa9f89fe917b70235e32f6e373
  
## Step 3: Describe the problem:

I am not able to run the freqtrade bot in live mode. An Error always appear where it is trying to find the pairlist even though the pairlist is already defined in config.json

### Steps to reproduce:

  1. Execute the command - source .env/bin/activate; freqtrade trade --logfile freqtrade.log --strategy AnyStrategy

### Observed Results:

  * What happened?
  The freqtrade bot did not run. Error message  'freqtrade - ERROR - No Pairlist defined!' appeared
  * What did you expect to happen?
  The freqtrade bot to run

### Relevant code exceptions or logs:
2019-11-24 08:45:33,554 - freqtrade.loggers - INFO - Verbosity set to 0
2019-11-24 08:45:33,554 - freqtrade.configuration.configuration - INFO - Dry run is disabled
2019-11-24 08:45:33,555 - freqtrade.configuration.configuration - INFO - Using DB: "sqlite:///tradesv3.sqlite"
2019-11-24 08:45:33,555 - freqtrade.configuration.configuration - INFO - Using max_open_trades: 15 ...
2019-11-24 08:45:33,555 - freqtrade.configuration.configuration - INFO - Using user-data directory: /root/freqtrade/user_data ...
2019-11-24 08:45:33,556 - freqtrade.configuration.configuration - INFO - Using data directory: /root/freqtrade/user_data/data/binance ...
2019-11-24 08:45:33,556 - freqtrade.configuration.check_exchange - INFO - Checking exchange...
2019-11-24 08:45:33,556 - freqtrade.configuration.check_exchange - INFO - Exchange "binance" is officially supported by the Freqtrade development team.
2019-11-24 08:45:33,556 - freqtrade.configuration.configuration - INFO - Using pairlist from configuration.
2019-11-24 08:45:33,557 - freqtrade.freqtradebot - INFO - Starting freqtrade develop-cab74858
2019-11-24 08:45:33,579 - root - INFO - Generating grammar tables from /usr/lib/python3.6/lib2to3/Grammar.txt
2019-11-24 08:45:33,598 - root - INFO - Generating grammar tables from /usr/lib/python3.6/lib2to3/PatternGrammar.txt
2019-11-24 08:45:33,933 - freqtrade.resolvers.iresolver - INFO - Using resolved strategy AnyStrategy from '/root/freqtrade/user_data/strategies/AnyStrategy.py'...
2019-11-24 08:45:33,933 - freqtrade.resolvers.strategy_resolver - INFO - Override strategy 'ticker_interval' with value in config file: 5m.
2019-11-24 08:45:33,934 - freqtrade.resolvers.strategy_resolver - INFO - Override strategy 'stoploss' with value in config file: -0.99.
2019-11-24 08:45:33,934 - freqtrade.resolvers.strategy_resolver - INFO - Override strategy 'trailing_stop' with value in config file: False.
2019-11-24 08:45:33,934 - freqtrade.resolvers.strategy_resolver - INFO - Override strategy 'stake_currency' with value in config file: BTC.
2019-11-24 08:45:33,934 - freqtrade.resolvers.strategy_resolver - INFO - Override strategy 'stake_amount' with value in config file: 0.0005.
2019-11-24 08:45:33,934 - freqtrade.resolvers.strategy_resolver - INFO - Override strategy 'use_sell_signal' with value in config file: True.
2019-11-24 08:45:33,934 - freqtrade.resolvers.strategy_resolver - INFO - Override strategy 'sell_profit_only' with value in config file: False.
2019-11-24 08:45:33,934 - freqtrade.resolvers.strategy_resolver - INFO - Override strategy 'ignore_roi_if_buy_signal' with value in config file: False.
2019-11-24 08:45:33,934 - freqtrade.resolvers.strategy_resolver - INFO - Strategy using minimal_roi: {'60': 0.01, '30': 0.03, '20': 0.04, '0': 0.05}
2019-11-24 08:45:33,935 - freqtrade.resolvers.strategy_resolver - INFO - Strategy using ticker_interval: 5m
2019-11-24 08:45:33,935 - freqtrade.resolvers.strategy_resolver - INFO - Strategy using stoploss: -0.99
2019-11-24 08:45:33,935 - freqtrade.resolvers.strategy_resolver - INFO - Strategy using trailing_stop: False
2019-11-24 08:45:33,935 - freqtrade.resolvers.strategy_resolver - INFO - Strategy using trailing_stop_positive_offset: 0.0
2019-11-24 08:45:33,935 - freqtrade.resolvers.strategy_resolver - INFO - Strategy using trailing_only_offset_is_reached: False
2019-11-24 08:45:33,935 - freqtrade.resolvers.strategy_resolver - INFO - Strategy using process_only_new_candles: False
2019-11-24 08:45:33,935 - freqtrade.resolvers.strategy_resolver - INFO - Strategy using order_types: {'buy': 'limit', 'sell': 'limit', 'stoploss': 'limit', 'stoploss_on_exchange': False, 'stoploss_on_exchange_interval': 60}
2019-11-24 08:45:33,935 - freqtrade.resolvers.strategy_resolver - INFO - Strategy using order_time_in_force: {'buy': 'gtc', 'sell': 'gtc'}
2019-11-24 08:45:33,935 - freqtrade.resolvers.strategy_resolver - INFO - Strategy using stake_currency: BTC
2019-11-24 08:45:33,935 - freqtrade.resolvers.strategy_resolver - INFO - Strategy using stake_amount: 0.0005
2019-11-24 08:45:33,936 - freqtrade.resolvers.strategy_resolver - INFO - Strategy using startup_candle_count: 0
2019-11-24 08:45:33,936 - freqtrade.resolvers.strategy_resolver - INFO - Strategy using use_sell_signal: True
2019-11-24 08:45:33,936 - freqtrade.resolvers.strategy_resolver - INFO - Strategy using sell_profit_only: False
2019-11-24 08:45:33,936 - freqtrade.resolvers.strategy_resolver - INFO - Strategy using ignore_roi_if_buy_signal: False
2019-11-24 08:45:33,936 - freqtrade.exchange.exchange - INFO - Applying additional ccxt config: {'enableRateLimit': True}
2019-11-24 08:45:33,939 - freqtrade.exchange.exchange - INFO - Applying additional ccxt config: {'enableRateLimit': True, 'rateLimit': 500}
2019-11-24 08:45:33,942 - freqtrade.exchange.exchange - INFO - Using Exchange "Binance"
2019-11-24 08:45:34,297 - freqtrade.resolvers.exchange_resolver - INFO - Using resolved exchange 'Binance'...
2019-11-24 08:45:34,528 - freqtrade.wallets - INFO - Wallets synced.
2019-11-24 08:45:34,528 - freqtrade - ERROR - No Pairlist defined!

-- config.json

{
    "max_open_trades": 15,
    "stake_currency": "BTC",
    "stake_amount": 0.0005,
    "fiat_display_currency": "PHP",
    "dry_run": false,
    "trailing_stop": false,
    "unfilledtimeout": {
        "buy": 10,
        "sell": 30
    },
    "ticker_interval": "5m",
    "stoploss": -0.99,
    "bid_strategy": {
        "ask_last_balance": 0.0,
        "use_order_book": false,
        "order_book_top": 1,
        "check_depth_of_market": {
            "enabled": false,
            "bids_to_ask_delta": 1
        }
    },
    "ask_strategy":{
        "use_order_book": false,
        "order_book_min": 1,
        "order_book_max": 9,
        "use_sell_signal": true,
        "sell_profit_only": false,
        "ignore_roi_if_buy_signal": false
    },
    "exchange": {
        "name": "binance",
        "key": "<binance key>",
        "secret": "<binace secret>",
        "ccxt_config": {"enableRateLimit": true},
        "ccxt_async_config": {
            "enableRateLimit": true,
            "rateLimit": 500
        },
        "pair_whitelist": [
            "ETH/BTC",
            "LTC/BTC",
            "ETC/BTC",
            "DASH/BTC",
            "ZEC/BTC",
            "XLM/BTC",
            "POWR/BTC",
            "ADA/BTC",
            "XMR/BTC",
            "BNB/BTC",
            "WTC/BTC",
            "TRX/BTC",
            "EOS/BTC",
            "XVG/BTC",
            "BAT/BTC",
            "STORJ/BTC",
            "QTUM/BTC",
            "WAVES/BTC",
            "XRP/BTC",
            "LSK/BTC",
            "NEO/BTC",
            "LINK/BTC",
            "ONT/BTC",
            "XEM/BTC",
			"VET/BTC",
            "ICX/BTC",
            "HOT/BTC"
        ],
        "pair_blacklist": [
            "DOGE/BTC"
        ]
    },
    "edge": {
        "enabled": false,
        "process_throttle_secs": 3600,
        "calculate_since_number_of_days": 7,
        "capital_available_percentage": 0.5,
        "allowed_risk": 0.01,
        "stoploss_range_min": -0.01,
        "stoploss_range_max": -0.1,
        "stoploss_range_step": -0.01,
        "minimum_winrate": 0.60,
        "minimum_expectancy": 0.20,
        "min_trade_number": 10,
        "max_trade_duration_minute": 1440,
        "remove_pumps": false
    },
    "telegram": {
        "enabled": true,
        "token": "<telegram token>",
        "chat_id": "<telegram chat id>"
    },
    "initial_state": "running",
    "forcebuy_enable": false,
    "internals": {
        "process_throttle_secs": 5
    }
}



Discussion:

Resolving patch:
diff --git a/freqtrade/configuration/deprecated_settings.py b/freqtrade/configuration/deprecated_settings.py
--- a/freqtrade/configuration/deprecated_settings.py
+++ b/freqtrade/configuration/deprecated_settings.py
@@ -58,6 +58,13 @@ def process_temporary_deprecated_settings(config: Dict[str, Any]) -> None:
     process_deprecated_setting(config, 'ask_strategy', '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: "


Test patch: