formatting

This commit is contained in:
Sam Germain 2021-09-09 13:42:43 -06:00
parent 9f96b977f6
commit 785b71aec1
3 changed files with 3 additions and 6 deletions

View File

@ -499,6 +499,7 @@ class LocalTrade():
lower_stop = new_loss < self.stop_loss
# stop losses only walk up, never down!,
# TODO-lev
# ? But adding more to a leveraged trade would create a lower liquidation price,
# ? decreasing the minimum stoploss
if (higher_stop and not self.is_short) or (lower_stop and self.is_short):

View File

@ -2994,10 +2994,6 @@ def test_apply_leverage_to_stake_amount(
assert exchange._apply_leverage_to_stake_amount(stake_amount, leverage) == min_stake_with_lev
def test_fill_leverage_brackets():
return
@pytest.mark.parametrize("collateral", [
(Collateral.CROSS),
(Collateral.ISOLATED)