Skip to content

Commit

Permalink
remove listenkey expired event
Browse files Browse the repository at this point in the history
  • Loading branch information
51bitquant committed Jul 25, 2022
1 parent 72a1395 commit b2416fa
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions howtrader/gateway/binance/binance_inverse_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -1050,8 +1050,6 @@ def on_packet(self, packet: dict) -> None:
self.on_account(packet)
elif packet["e"] == "ORDER_TRADE_UPDATE":
self.on_order(packet)
elif packet['e'] == 'listenKeyExpired':
self.gateway.rest_api.start_user_stream()

def on_exit_loop(self):
self.gateway.rest_api.start_user_stream()
Expand Down
2 changes: 0 additions & 2 deletions howtrader/gateway/binance/binance_spot_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -902,8 +902,6 @@ def on_packet(self, packet: dict) -> None:
self.on_account(packet)
elif packet["e"] == "executionReport":
self.on_order(packet)
elif packet['e'] == 'listenKeyExpired':
self.gateway.rest_api.start_user_stream()

def on_exit_loop(self):
self.gateway.rest_api.start_user_stream()
Expand Down
2 changes: 0 additions & 2 deletions howtrader/gateway/binance/binance_usdt_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -1058,8 +1058,6 @@ def on_packet(self, packet: dict) -> None:
self.on_account(packet)
elif packet["e"] == "ORDER_TRADE_UPDATE":
self.on_order(packet)
elif packet['e'] == 'listenKeyExpired':
self.gateway.rest_api.start_user_stream()

def on_exit_loop(self):
self.gateway.rest_api.start_user_stream()
Expand Down

0 comments on commit b2416fa

Please sign in to comment.