Merge pull request #1912 from nioss/dev

Dev 修改okex深度数据(ondepth)重复
This commit is contained in:
vn.py 2019-07-12 15:10:36 +08:00 committed by GitHub
commit 33bd9c56c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 35 deletions

View File

@ -644,7 +644,6 @@ class OkexWebsocketApi(WebsocketClient):
def on_depth(self, d):
""""""
for tick_data in d:
symbol = d["instrument_id"]
tick = self.ticks.get(symbol, None)
if not tick:

View File

@ -709,7 +709,6 @@ class OkexfWebsocketApi(WebsocketClient):
def on_depth(self, d):
""""""
for tick_data in d:
symbol = d["instrument_id"]
tick = self.ticks.get(symbol, None)
if not tick: