From 3077611e2d4d849ff5f8f5ef4cf020cfd0ac9dcf Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Mon, 19 Aug 2019 14:47:22 +0800 Subject: [PATCH] [Fix] filter new event push for BinanceGateway --- vnpy/gateway/binance/binance_gateway.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnpy/gateway/binance/binance_gateway.py b/vnpy/gateway/binance/binance_gateway.py index 7316ac35..b2936948 100644 --- a/vnpy/gateway/binance/binance_gateway.py +++ b/vnpy/gateway/binance/binance_gateway.py @@ -629,7 +629,7 @@ class BinanceTradeWebsocketApi(WebsocketClient): """""" if packet["e"] == "outboundAccountInfo": self.on_account(packet) - else: + elif packet["e"] == "executionReport": self.on_order(packet) def on_account(self, packet):