Update handle_message to ignore both PLACEMENT and CANCELLATION message types
This commit is contained in:
+1
-1
@@ -26,7 +26,7 @@ async def handle_message(message):
|
||||
data = json.loads(message)
|
||||
logger.debug(f"Received Message: {data}")
|
||||
data_type = data.get("type")
|
||||
if data_type == "PLACEMENT":
|
||||
if data_type in ["PLACEMENT", "CANCELLATION"]:
|
||||
return
|
||||
orders_ids = []
|
||||
orders_ids.append(data.get("id"))
|
||||
|
||||
Reference in New Issue
Block a user