Removed some outdated TODOs and whitespace
This commit is contained in:
parent
97bb555d41
commit
84bc4dd740
@ -540,7 +540,6 @@ class Exchange:
|
|||||||
|
|
||||||
def get_min_pair_stake_amount(self, pair: str, price: float, stoploss: float,
|
def get_min_pair_stake_amount(self, pair: str, price: float, stoploss: float,
|
||||||
leverage: Optional[float] = 1.0) -> Optional[float]:
|
leverage: Optional[float] = 1.0) -> Optional[float]:
|
||||||
# TODO-lev: Using leverage makes the min stake amount lower (on binance at least)
|
|
||||||
try:
|
try:
|
||||||
market = self.markets[pair]
|
market = self.markets[pair]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
@ -1551,8 +1550,6 @@ class Exchange:
|
|||||||
raise OperationalException(
|
raise OperationalException(
|
||||||
f"{self.name.capitalize()}.set_leverage has not been implemented.")
|
f"{self.name.capitalize()}.set_leverage has not been implemented.")
|
||||||
|
|
||||||
self._api.set_leverage(symbol=pair, leverage=leverage)
|
|
||||||
|
|
||||||
|
|
||||||
def is_exchange_known_ccxt(exchange_name: str, ccxt_module: CcxtModuleType = None) -> bool:
|
def is_exchange_known_ccxt(exchange_name: str, ccxt_module: CcxtModuleType = None) -> bool:
|
||||||
return exchange_name in ccxt_exchanges(ccxt_module)
|
return exchange_name in ccxt_exchanges(ccxt_module)
|
||||||
|
Loading…
Reference in New Issue
Block a user