Skip to content

Commit

Permalink
[Mod] Binance spot trade websocket account event
Browse files Browse the repository at this point in the history
event key has changed: outboundAccountInfo -> outboundAccountPosition, https://binance-docs.github.io/apidocs/spot/cn/#payload
  • Loading branch information
Andrew authored Apr 26, 2021
1 parent 6dcaf92 commit 23b209b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vnpy/gateway/binance/binance_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ def on_connected(self):

def on_packet(self, packet: dict): # type: (dict)->None
""""""
if packet["e"] == "outboundAccountInfo":
if packet["e"] == "outboundAccountPosition":
self.on_account(packet)
elif packet["e"] == "executionReport":
self.on_order(packet)
Expand Down

0 comments on commit 23b209b

Please sign in to comment.