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

@ -40,7 +40,7 @@ class Kraken(Exchange):
return (parent_check and return (parent_check and
market.get('darkpool', False) is False) market.get('darkpool', False) is False)
@ retrier @retrier
def get_balances(self) -> dict: def get_balances(self) -> dict:
if self._config['dry_run']: if self._config['dry_run']:
return {} return {}
@ -84,7 +84,7 @@ class Kraken(Exchange):
(side == "buy" and stop_loss < float(order['price'])) (side == "buy" and stop_loss < float(order['price']))
)) ))
@ retrier(retries=0) @retrier(retries=0)
def stoploss(self, pair: str, amount: float, def stoploss(self, pair: str, amount: float,
stop_price: float, order_types: Dict, side: str) -> Dict: stop_price: float, order_types: Dict, side: str) -> Dict:
""" """

View File

@ -499,6 +499,7 @@ class LocalTrade():
lower_stop = new_loss < self.stop_loss lower_stop = new_loss < self.stop_loss
# stop losses only walk up, never down!, # stop losses only walk up, never down!,
# TODO-lev
# ? But adding more to a leveraged trade would create a lower liquidation price, # ? But adding more to a leveraged trade would create a lower liquidation price,
# ? decreasing the minimum stoploss # ? decreasing the minimum stoploss
if (higher_stop and not self.is_short) or (lower_stop and self.is_short): 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 assert exchange._apply_leverage_to_stake_amount(stake_amount, leverage) == min_stake_with_lev
def test_fill_leverage_brackets():
return
@pytest.mark.parametrize("collateral", [ @pytest.mark.parametrize("collateral", [
(Collateral.CROSS), (Collateral.CROSS),
(Collateral.ISOLATED) (Collateral.ISOLATED)