Fix stoploss on binance bug
This commit is contained in:
parent
ed7209f910
commit
fe3ea8e7ec
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user