From 52da64b6dcc9b07f9cdf0e7b9828c1631c6a110f Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 11 May 2019 14:33:26 +0200 Subject: [PATCH 1/2] Align configuration files --- config_binance.json.example | 2 +- config_full.json.example | 2 +- config_kraken.json.example | 7 +++---- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/config_binance.json.example b/config_binance.json.example index ab57db88f..1d492fc3c 100644 --- a/config_binance.json.example +++ b/config_binance.json.example @@ -11,8 +11,8 @@ "sell": 30 }, "bid_strategy": { - "ask_last_balance": 0.0, "use_order_book": false, + "ask_last_balance": 0.0, "order_book_top": 1, "check_depth_of_market": { "enabled": false, diff --git a/config_full.json.example b/config_full.json.example index 806b5f718..4c4ad3c58 100644 --- a/config_full.json.example +++ b/config_full.json.example @@ -22,8 +22,8 @@ "sell": 30 }, "bid_strategy": { - "ask_last_balance": 0.0, "use_order_book": false, + "ask_last_balance": 0.0, "order_book_top": 1, "check_depth_of_market": { "enabled": false, diff --git a/config_kraken.json.example b/config_kraken.json.example index 7a47b701f..ea3677b2d 100644 --- a/config_kraken.json.example +++ b/config_kraken.json.example @@ -5,15 +5,14 @@ "fiat_display_currency": "EUR", "ticker_interval" : "5m", "dry_run": true, - "db_url": "sqlite:///tradesv3.dryrun.sqlite", "trailing_stop": false, "unfilledtimeout": { "buy": 10, "sell": 30 }, "bid_strategy": { - "ask_last_balance": 0.0, "use_order_book": false, + "ask_last_balance": 0.0, "order_book_top": 1, "check_depth_of_market": { "enabled": false, @@ -60,8 +59,8 @@ }, "telegram": { "enabled": false, - "token": "", - "chat_id": "" + "token": "your_telegram_token", + "chat_id": "your_telegram_chat_id" }, "initial_state": "running", "forcebuy_enable": false, From 131b232155c4c049adafc450e2b14ca7c6d57396 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 11 May 2019 14:33:35 +0200 Subject: [PATCH 2/2] Add sample for order_types in config (slightly different syntax) --- docs/configuration.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/docs/configuration.md b/docs/configuration.md index dc623a728..df116b3c2 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -191,14 +191,28 @@ If this is configured, all 4 values (`buy`, `sell`, `stoploss` and `stoploss_on_exchange`) need to be present, otherwise the bot will warn about it and fail to start. The below is the default which is used if this is not configured in either strategy or configuration file. +Syntax for Strategy: + ```python -"order_types": { +order_types = { "buy": "limit", "sell": "limit", "stoploss": "market", "stoploss_on_exchange": False, "stoploss_on_exchange_interval": 60 -}, +} +``` + +Configuration: + +```json +"order_types": { + "buy": "limit", + "sell": "limit", + "stoploss": "market", + "stoploss_on_exchange": false, + "stoploss_on_exchange_interval": 60 +} ``` !!! Note