okex 现货和合约深度数据重复修改

okex 现货和合约深度数据重复修改
This commit is contained in:
nio 2019-07-09 22:00:54 +08:00
parent bc219e4b89
commit 5eab77cc9d
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: