Merge pull request #13 from gcarq/develop

Update from upstream repo gcarq/freqtrade@develop
This commit is contained in:
Gert Wohlgemuth
2018-06-01 20:31:41 -07:00
committed by GitHub
3 changed files with 79 additions and 32 deletions

View File

@@ -317,8 +317,10 @@ class RPC(object):
and order['side'] == 'buy':
exchange.cancel_order(trade.open_order_id, trade.pair)
trade.close(order.get('price') or trade.open_rate)
# TODO: sell amount which has been bought already
return
# Do the best effort, if we don't know 'filled' amount, don't try selling
if order['filled'] is None:
return
trade.amount = order['filled']
# Ignore trades with an attached LIMIT_SELL order
if order and order['status'] == 'open' \