From 95e5c2e6c1d48d7f84b9b6d8e415e844da339bb6 Mon Sep 17 00:00:00 2001 From: xsmile <> Date: Sat, 7 Oct 2017 17:36:48 +0200 Subject: [PATCH] remove 'enabled' property in exchange config --- config.json.example | 1 - freqtrade/exchange.py | 3 --- freqtrade/misc.py | 3 +-- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/config.json.example b/config.json.example index 8f54a6a37..d2ae679db 100644 --- a/config.json.example +++ b/config.json.example @@ -15,7 +15,6 @@ }, "exchange": { "name": "bittrex", - "enabled": true, "key": "key", "secret": "secret", "pair_whitelist": [ diff --git a/freqtrade/exchange.py b/freqtrade/exchange.py index 0c1dd3ad9..35db8469d 100644 --- a/freqtrade/exchange.py +++ b/freqtrade/exchange.py @@ -48,9 +48,6 @@ def init(config: dict) -> None: if not exchange_class: raise RuntimeError('Exchange {} is not supported'.format(name)) - if not exchange_config.get('enabled', False): - raise RuntimeError('Exchange {} is disabled'.format(name)) - EXCHANGE = exchange_class(exchange_config) # Check if all pairs are available diff --git a/freqtrade/misc.py b/freqtrade/misc.py index 5115d2b0b..585aee3de 100644 --- a/freqtrade/misc.py +++ b/freqtrade/misc.py @@ -77,7 +77,6 @@ CONF_SCHEMA = { 'type': 'object', 'properties': { 'name': {'type': 'string'}, - 'enabled': {'type': 'boolean'}, 'key': {'type': 'string'}, 'secret': {'type': 'string'}, 'pair_whitelist': { @@ -86,7 +85,7 @@ CONF_SCHEMA = { 'uniqueItems': True } }, - 'required': ['name', 'enabled', 'key', 'secret', 'pair_whitelist'] + 'required': ['name', 'key', 'secret', 'pair_whitelist'] } }, 'anyOf': [