Merge pull request #1575 from qqqlyx/v2.0.1-DEV

okex gateway bug
This commit is contained in:
vn.py 2019-04-11 08:48:02 +08:00 committed by GitHub
commit 4173979b3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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