This commit is contained in:
qqqlyx 2019-04-10 10:20:45 +08:00
parent fd60b4db4b
commit ee93bf709b

View File

@ -682,7 +682,7 @@ class OkexWebsocketApi(WebsocketClient):
self.gateway.on_order(copy(order))
trade_volume = d.get("last_fill_qty", 0)
if float(trade_volume) == 0:
if not trade_volume or float(trade_volume) == 0:
return
self.trade_count += 1