ignore cancelled order during trade state update
This commit is contained in:
parent
cb4ecfd3a3
commit
ddd3d2d0a9
@ -87,7 +87,8 @@ class Trade(_DECL_BASE):
|
|||||||
:param order: order retrieved by exchange.get_order()
|
:param order: order retrieved by exchange.get_order()
|
||||||
:return: None
|
:return: None
|
||||||
"""
|
"""
|
||||||
if not order['closed']:
|
# Ignore open and cancelled orders
|
||||||
|
if not order['closed'] or order['rate'] is None:
|
||||||
return
|
return
|
||||||
|
|
||||||
logger.info('Updating trade (id=%d) ...', self.id)
|
logger.info('Updating trade (id=%d) ...', self.id)
|
||||||
|
Loading…
Reference in New Issue
Block a user