From b641cb8a9cd6cdfcc22187e406ca01626bcd6b70 Mon Sep 17 00:00:00 2001 From: Balaji J Date: Thu, 15 Feb 2024 13:32:38 +0530 Subject: [PATCH] Updated Subscribe Token in smartWebSocketV2.py Since the web socket can now support 1000 tokens per websocket connection I'm changing quota_limit to 1000 from 50. --- SmartApi/smartWebSocketV2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SmartApi/smartWebSocketV2.py b/SmartApi/smartWebSocketV2.py index e2da92c9..aabb16e5 100644 --- a/SmartApi/smartWebSocketV2.py +++ b/SmartApi/smartWebSocketV2.py @@ -199,7 +199,7 @@ def subscribe(self, correlation_id, mode, token_list): if mode == self.DEPTH: total_tokens = sum(len(token["tokens"]) for token in token_list) - quota_limit = 50 + quota_limit = 1000 if total_tokens > quota_limit: error_message = f"Quota exceeded: You can subscribe to a maximum of {quota_limit} tokens only." logger.error(error_message)