From c62fad0088d4a4118dc022825bcee290bb7168e9 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 26 Jun 2021 08:19:37 +0200 Subject: [PATCH] Pricing strategies should default to use orderbook pricing --- config_binance.json.example | 4 ++-- config_bittrex.json.example | 4 ++-- config_ftx.json.example | 4 ++-- config_full.json.example | 4 ++-- config_kraken.json.example | 4 ++-- freqtrade/constants.py | 5 +++-- freqtrade/templates/base_config.json.j2 | 4 ++-- 7 files changed, 15 insertions(+), 14 deletions(-) diff --git a/config_binance.json.example b/config_binance.json.example index ef0f43873..b13a5725c 100644 --- a/config_binance.json.example +++ b/config_binance.json.example @@ -13,7 +13,7 @@ }, "bid_strategy": { "ask_last_balance": 0.0, - "use_order_book": false, + "use_order_book": true, "order_book_top": 1, "check_depth_of_market": { "enabled": false, @@ -21,7 +21,7 @@ } }, "ask_strategy": { - "use_order_book": false, + "use_order_book": true, "order_book_top": 1, "use_sell_signal": true, "sell_profit_only": false, diff --git a/config_bittrex.json.example b/config_bittrex.json.example index 3c7f2bceb..9a0c62021 100644 --- a/config_bittrex.json.example +++ b/config_bittrex.json.example @@ -12,7 +12,7 @@ "sell": 30 }, "bid_strategy": { - "use_order_book": false, + "use_order_book": true, "ask_last_balance": 0.0, "order_book_top": 1, "check_depth_of_market": { @@ -21,7 +21,7 @@ } }, "ask_strategy":{ - "use_order_book": false, + "use_order_book": true, "order_book_top": 1, "use_sell_signal": true, "sell_profit_only": false, diff --git a/config_ftx.json.example b/config_ftx.json.example index 803fa5899..f1ad0a4f3 100644 --- a/config_ftx.json.example +++ b/config_ftx.json.example @@ -13,7 +13,7 @@ }, "bid_strategy": { "ask_last_balance": 0.0, - "use_order_book": false, + "use_order_book": true, "order_book_top": 1, "check_depth_of_market": { "enabled": false, @@ -21,7 +21,7 @@ } }, "ask_strategy": { - "use_order_book": false, + "use_order_book": true, "order_book_top": 1, "use_sell_signal": true, "sell_profit_only": false, diff --git a/config_full.json.example b/config_full.json.example index 7f6a53710..5b0448f13 100644 --- a/config_full.json.example +++ b/config_full.json.example @@ -28,7 +28,7 @@ }, "bid_strategy": { "price_side": "bid", - "use_order_book": false, + "use_order_book": true, "ask_last_balance": 0.0, "order_book_top": 1, "check_depth_of_market": { @@ -38,7 +38,7 @@ }, "ask_strategy":{ "price_side": "ask", - "use_order_book": false, + "use_order_book": true, "order_book_top": 1, "use_sell_signal": true, "sell_profit_only": false, diff --git a/config_kraken.json.example b/config_kraken.json.example index 6ebf10403..9fe094120 100644 --- a/config_kraken.json.example +++ b/config_kraken.json.example @@ -12,7 +12,7 @@ "sell": 30 }, "bid_strategy": { - "use_order_book": false, + "use_order_book": true, "ask_last_balance": 0.0, "order_book_top": 1, "check_depth_of_market": { @@ -21,7 +21,7 @@ } }, "ask_strategy":{ - "use_order_book": false, + "use_order_book": true, "order_book_top": 1, "use_sell_signal": true, "sell_profit_only": false, diff --git a/freqtrade/constants.py b/freqtrade/constants.py index f8d1100fe..364eb54bd 100644 --- a/freqtrade/constants.py +++ b/freqtrade/constants.py @@ -163,7 +163,7 @@ CONF_SCHEMA = { } }, }, - 'required': ['ask_last_balance'] + 'required': ['price_side'] }, 'ask_strategy': { 'type': 'object', @@ -181,7 +181,8 @@ CONF_SCHEMA = { 'sell_profit_only': {'type': 'boolean'}, 'sell_profit_offset': {'type': 'number'}, 'ignore_roi_if_buy_signal': {'type': 'boolean'} - } + }, + 'required': ['price_side'] }, 'order_types': { 'type': 'object', diff --git a/freqtrade/templates/base_config.json.j2 b/freqtrade/templates/base_config.json.j2 index 5e6890b90..043d95bdd 100644 --- a/freqtrade/templates/base_config.json.j2 +++ b/freqtrade/templates/base_config.json.j2 @@ -15,7 +15,7 @@ "bid_strategy": { "price_side": "bid", "ask_last_balance": 0.0, - "use_order_book": false, + "use_order_book": true, "order_book_top": 1, "check_depth_of_market": { "enabled": false, @@ -24,7 +24,7 @@ }, "ask_strategy": { "price_side": "ask", - "use_order_book": false, + "use_order_book": true, "order_book_top": 1, "use_sell_signal": true, "sell_profit_only": false,