Update some tests

This commit is contained in:
Matthias
2022-03-28 19:16:12 +02:00
parent f70166270d
commit 440967e483
5 changed files with 60 additions and 51 deletions

View File

@@ -180,7 +180,7 @@ CONF_SCHEMA = {
'maximum': 1,
'exclusiveMaximum': False,
},
'price_side': {'type': 'string', 'enum': PRICING_SIDES, 'default': 'bid'},
'price_side': {'type': 'string', 'enum': PRICING_SIDES, 'default': 'same'},
'use_order_book': {'type': 'boolean'},
'order_book_top': {'type': 'integer', 'minimum': 1, 'maximum': 50, },
'check_depth_of_market': {
@@ -196,7 +196,7 @@ CONF_SCHEMA = {
'exit_pricing': {
'type': 'object',
'properties': {
'price_side': {'type': 'string', 'enum': PRICING_SIDES, 'default': 'ask'},
'price_side': {'type': 'string', 'enum': PRICING_SIDES, 'default': 'same'},
'bid_last_balance': {
'type': 'number',
'minimum': 0,

View File

@@ -1468,10 +1468,10 @@ class Exchange:
if price_side in ('same', 'other'):
price_map = {
('enter', 'long', 'same'): 'bid',
('enter', 'long', 'other'): 'ask',
('enter', 'short', 'same'): 'ask',
('enter', 'short', 'other'): 'bid',
('entry', 'long', 'same'): 'bid',
('entry', 'long', 'other'): 'ask',
('entry', 'short', 'same'): 'ask',
('entry', 'short', 'other'): 'bid',
('exit', 'long', 'same'): 'ask',
('exit', 'long', 'other'): 'bid',
('exit', 'short', 'same'): 'bid',
@@ -1481,7 +1481,7 @@ class Exchange:
price_side_word = price_side.capitalize()
if conf_strategy.get('use_order_book', True):
if conf_strategy.get('use_order_book', False):
order_book_top = conf_strategy.get('order_book_top', 1)
order_book = self.fetch_l2_order_book(pair, order_book_top)

View File

@@ -1491,7 +1491,7 @@ class Telegram(RPCHandler):
f"*Max open Trades:* `{val['max_open_trades']}`\n"
f"*Minimum ROI:* `{val['minimal_roi']}`\n"
f"*Entry strategy:* ```\n{json.dumps(val['entry_pricing'])}```\n"
f"*Exit strategy:* ```\n{json.dumps(val['exit_strategy'])}```\n"
f"*Exit strategy:* ```\n{json.dumps(val['exit_pricing'])}```\n"
f"{sl_info}"
f"{pa_info}"
f"*Timeframe:* `{val['timeframe']}`\n"