Fix set-leverage function sig

This commit is contained in:
Matthias 2023-01-08 11:04:47 +01:00
parent 7a18e96042
commit c2b33a0f58
2 changed files with 4 additions and 2 deletions

View File

@ -87,7 +87,8 @@ class Binance(Exchange):
self,
leverage: float,
pair: Optional[str] = None,
trading_mode: Optional[TradingMode] = None
trading_mode: Optional[TradingMode] = None,
accept_fail: bool = False,
):
"""
Set's the leverage before making a trade, in order to not

View File

@ -158,7 +158,8 @@ class Kraken(Exchange):
self,
leverage: float,
pair: Optional[str] = None,
trading_mode: Optional[TradingMode] = None
trading_mode: Optional[TradingMode] = None,
accept_fail: bool = False,
):
"""
Kraken set's the leverage as an option in the order object, so we need to