[Mod] flake8 code quality improve
This commit is contained in:
parent
c7171fc312
commit
92214950da
@ -661,7 +661,7 @@ class OnetokenTradeWebsocketApi(WebsocketClient):
|
||||
gateway_name=self.gateway_name
|
||||
)
|
||||
|
||||
if order_data["status"] in ("withdrawn","part-deal-withdrawn"):
|
||||
if order_data["status"] in ("withdrawn", "part-deal-withdrawn"):
|
||||
order.status = Status.CANCELLED
|
||||
else:
|
||||
if order.traded == order.volume:
|
||||
|
Loading…
Reference in New Issue
Block a user