From 4ae3b2acae8d5b156149e734342885ee6c90df91 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Tue, 11 Jun 2019 23:00:12 +0800 Subject: [PATCH] [Mod] remove init_query function --- vnpy/gateway/binance/binance_gateway.py | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/vnpy/gateway/binance/binance_gateway.py b/vnpy/gateway/binance/binance_gateway.py index 0415f186..625ef0ad 100644 --- a/vnpy/gateway/binance/binance_gateway.py +++ b/vnpy/gateway/binance/binance_gateway.py @@ -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): """