Use named arguments for stoploss create_order call

This commit is contained in:
Matthias
2020-01-19 14:07:59 +01:00
parent 16b34e11ca
commit e6f1912443
2 changed files with 10 additions and 9 deletions

View File

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