Set default leverage to 1.0

This commit is contained in:
Sam Germain
2021-07-04 23:12:07 -06:00
parent 78708b27f2
commit 0ffc85fed9
4 changed files with 8 additions and 13 deletions

View File

@@ -305,9 +305,6 @@ def mock_trade_6(fee):
return trade
#! TODO Currently the following short_trade test and leverage_trade test will fail
def short_order():
return {
'id': '1236',

View File

@@ -107,8 +107,7 @@ def test_rpc_trade_status(default_conf, ticker, fee, mocker) -> None:
'stoploss_entry_dist_ratio': -0.10448878,
'open_order': None,
'exchange': 'binance',
'leverage': None,
'leverage': 1.0,
'interest_rate': 0.0,
'liquidation_price': None,
'is_short': False,
@@ -178,8 +177,7 @@ def test_rpc_trade_status(default_conf, ticker, fee, mocker) -> None:
'stoploss_entry_dist_ratio': -0.10448878,
'open_order': None,
'exchange': 'binance',
'leverage': None,
'leverage': 1.0,
'interest_rate': 0.0,
'liquidation_price': None,
'is_short': False,