From 6f67ea44dce5e81b3ebf3cd5e29f3d5e82459725 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 4 Apr 2019 07:13:14 +0200 Subject: [PATCH] Enable config-check for rest server --- freqtrade/constants.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/freqtrade/constants.py b/freqtrade/constants.py index 619508e73..1b06eb726 100644 --- a/freqtrade/constants.py +++ b/freqtrade/constants.py @@ -156,6 +156,19 @@ CONF_SCHEMA = { 'webhookstatus': {'type': 'object'}, }, }, + 'api_server': { + 'type': 'object', + 'properties': { + 'enabled': {'type': 'boolean'}, + 'listen_ip_address': {'format': 'ipv4'}, + 'listen_port': { + 'type': 'integer', + "minimum": 1024, + "maximum": 65535 + }, + }, + 'required': ['enabled', 'listen_ip_address', 'listen_port'] + }, 'db_url': {'type': 'string'}, 'initial_state': {'type': 'string', 'enum': ['running', 'stopped']}, 'forcebuy_enable': {'type': 'boolean'},