Skip to content

Commit

Permalink
remove outboundAccountInfo c.f. "https://www.binance.com/en/support/a…
Browse files Browse the repository at this point in the history
  • Loading branch information
Th0rgal committed Sep 11, 2020
1 parent cde7dde commit 6cb1bb1
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions binance/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ def unregister(self, listener, event_type):

def wrap_event(self, event_data):
wrapper_by_type = {
"outboundAccountInfo": OutboundAccountInfoWrapper,
"outboundAccountPosition": OutboundAccountPositionWrapper,
"balanceUpdate": BalanceUpdateWrapper,
"executionReport": OrderUpdateWrapper,
Expand Down Expand Up @@ -225,24 +224,6 @@ def __init__(self, event_data, handlers):
# ACCOUNT UPDATE


class OutboundAccountInfoWrapper(BinanceEventWrapper):
def __init__(self, event_data, handlers):
super().__init__(event_data, handlers)
self.event_time = event_data["E"]
self.maker_commission_rate = event_data["m"]
self.taker_commission_rate = event_data["t"]
self.buyer_commission_rate = event_data["b"]
self.seller_commission_rate = event_data["s"]
self.can_trade = event_data["T"]
self.can_withdraw = event_data["W"]
self.can_deposit = event_data["D"]
self.last_update = event_data["u"]
self.balances = dict(
map(lambda x: (x["a"], {"free": x["f"], "locked": x["l"]}), event_data["B"])
)
self.account_permissions = event_data["P"]


class OutboundAccountPositionWrapper(BinanceEventWrapper):
def __init__(self, event_data, handlers):
super().__init__(event_data, handlers)
Expand Down

0 comments on commit 6cb1bb1

Please sign in to comment.