Replace key 'rate' with 'price' in orders to conform to ccxt

This commit is contained in:
enenn
2018-03-14 11:15:28 +01:00
parent a4696f8391
commit ce243a04b3
4 changed files with 11 additions and 11 deletions

View File

@@ -606,7 +606,7 @@ def _exec_forcesell(trade: Trade) -> None:
and order['type'] == 'limit' \
and order['side'] == 'buy':
exchange.cancel_order(trade.open_order_id, trade.pair)
trade.close(order.get('rate') or trade.open_rate)
trade.close(order.get('price') or trade.open_rate)
# TODO: sell amount which has been bought already
return