removing NotImplementedError from stoploss_limit

This commit is contained in:
misagh 2018-11-25 10:54:36 +01:00
parent 266bd7b9b6
commit 664b96173e

View File

@ -334,10 +334,10 @@ class Exchange(object):
raise OperationalException(e) raise OperationalException(e)
def stoploss_limit(self, pair: str, amount: float, stop_price: float, rate: float) -> Dict: def stoploss_limit(self, pair: str, amount: float, stop_price: float, rate: float) -> Dict:
# Only binance is supported """
if not self.name == 'Binance': creates a stoploss limit order.
raise NotImplementedError( NOTICE: it is not supported by all exchanges. only binance is tested for now.
'Stoploss limit orders are implemented only for binance as of now.') """
# Set the precision for amount and price(rate) as accepted by the exchange # Set the precision for amount and price(rate) as accepted by the exchange
amount = self.symbol_amount_prec(pair, amount) amount = self.symbol_amount_prec(pair, amount)