Merge pull request #1829 from 1122455801/bitmex_0614

[Mod] bitmex_gateway增加持仓推送过滤
This commit is contained in:
vn.py 2019-06-14 15:44:43 +08:00 committed by GitHub
commit 23792474b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -661,6 +661,9 @@ class BitmexWebsocketApi(WebsocketClient):
def on_position(self, d):
""""""
if not d["currentQty"]:
return
position = PositionData(
symbol=d["symbol"],
exchange=Exchange.BITMEX,