Merge pull request #3297 from bmoulkaf/develop

Fix stoploss on binance bug
This commit is contained in:
Matthias
2020-05-15 08:23:18 +02:00
committed by GitHub
2 changed files with 11 additions and 6 deletions

View File

@@ -72,7 +72,7 @@ class Binance(Exchange):
rate = self.price_to_precision(pair, rate)
order = self._api.create_order(symbol=pair, type=ordertype, side='sell',
amount=amount, price=stop_price, params=params)
amount=amount, price=rate, params=params)
logger.info('stoploss limit order added for %s. '
'stop price: %s. limit: %s', pair, stop_price, rate)
return order