From 83b14523ca1a60b221229827ff66947616ef1d8f Mon Sep 17 00:00:00 2001 From: Janne Sinivirta Date: Thu, 7 Sep 2017 17:31:55 +0300 Subject: [PATCH] add stoploss to example config and json schema validation --- config.json.example | 1 + utils.py | 1 + 2 files changed, 2 insertions(+) diff --git a/config.json.example b/config.json.example index 29eb75075..a9fc3be79 100644 --- a/config.json.example +++ b/config.json.example @@ -8,6 +8,7 @@ "720": 0.01, "0": 0.02 }, + "stoploss": -0.10, "poloniex": { "enabled": false, "key": "key", diff --git a/utils.py b/utils.py index e7bb006fd..0bde3fce5 100644 --- a/utils.py +++ b/utils.py @@ -24,6 +24,7 @@ _conf_schema = { }, 'minProperties': 1 }, + 'stoploss': {'type': 'number', 'maximum': 0, 'exclusiveMaximum': True}, 'poloniex': {'$ref': '#/definitions/exchange'}, 'bittrex': {'$ref': '#/definitions/exchange'}, 'telegram': {