Update handle_message to ignore both PLACEMENT and CANCELLATION message types

This commit is contained in:
Nawaz Haider
2026-01-03 16:17:56 +06:00
parent b549edd757
commit 173c8e708d
+1 -1
View File
@@ -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"))