Remove oc_multi-notification event from AuthenticatedEventsHandler (bfxapi.websocket.handlers.authenticated_events_handler).

This commit is contained in:
Davide Casale
2023-04-20 01:06:54 +02:00
parent 7231c48465
commit 92d6630013

View File

@@ -43,8 +43,7 @@ class AuthenticatedEventsHandler:
ON_EVENTS = [
*list(__on_abbreviations.values()),
"notification", "on-req-notification", "ou-req-notification",
"oc-req-notification", "oc_multi-notification", "fon-req-notification",
"foc-req-notification"
"oc-req-notification", "fon-req-notification", "foc-req-notification"
]
def __init__(self, event_emitter):
@@ -71,9 +70,6 @@ class AuthenticatedEventsHandler:
if stream[1] == "on-req" or stream[1] == "ou-req" or stream[1] == "oc-req":
event, serializer = f"{stream[1]}-notification", _Notification(serializer=serializers.Order)
if stream[1] == "oc_multi-req":
event, serializer = f"{stream[1]}-notification", _Notification(serializer=serializers.Order, iterate=True)
if stream[1] == "fon-req" or stream[1] == "foc-req":
event, serializer = f"{stream[1]}-notification", _Notification(serializer=serializers.FundingOffer)