[Mod] remove init_query function

This commit is contained in:
vn.py 2019-06-11 23:00:12 +08:00
parent ebf49abfcb
commit 4ae3b2acae

View File

@ -103,8 +103,6 @@ class BinanceGateway(BaseGateway):
# self.trade_ws_api.connect(key, secret, proxy_host, proxy_port)
# self.market_ws_api.connect(key, secret, proxy_host, proxy_port)
# self.init_query()
def subscribe(self, req: SubscribeRequest):
""""""
self.market_ws_api.subscribe(req)
@ -120,7 +118,7 @@ class BinanceGateway(BaseGateway):
def query_account(self):
""""""
self.rest_api.query_account()
pass
def query_position(self):
""""""
@ -132,19 +130,6 @@ class BinanceGateway(BaseGateway):
self.trade_ws_api.stop()
self.market_ws_api.stop()
def process_timer_event(self, event: Event):
""""""
self.count += 1
if self.count < 3:
return
self.query_account()
def init_query(self):
""""""
self.count = 0
self.event_engine.register(EVENT_TIMER, self.process_timer_event)
class BinanceRestApi(RestClient):
"""