mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-01 19:30:05 +08:00
BLD: trying to better handle invalid order status
This commit is contained in:
@@ -410,7 +410,12 @@ class CCXT(Exchange):
|
||||
status = ORDER_STATUS.OPEN
|
||||
|
||||
else:
|
||||
raise ValueError('invalid state for order')
|
||||
log.warn(
|
||||
'invalid state {} for order {}'.format(
|
||||
order_status['status'], order_status['id']
|
||||
)
|
||||
)
|
||||
status = ORDER_STATUS.OPEN
|
||||
|
||||
amount = order_status['amount']
|
||||
filled = order_status['filled']
|
||||
|
||||
Reference in New Issue
Block a user