Set default leverage to 1.0
This commit is contained in:
@@ -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',
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user