From 3074fa1512b480b054fba5fbc5eee0b150a55482 Mon Sep 17 00:00:00 2001 From: justinpolygon <123573436+justinpolygon@users.noreply.github.com> Date: Mon, 27 Nov 2023 13:57:52 -0800 Subject: [PATCH] Fix websocket parse of tickers with periods --- polygon/websocket/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polygon/websocket/__init__.py b/polygon/websocket/__init__.py index 4875a1ac..b9f45a2e 100644 --- a/polygon/websocket/__init__.py +++ b/polygon/websocket/__init__.py @@ -200,7 +200,7 @@ async def _unsubscribe(self, topics: Union[List[str], Set[str]]): @staticmethod def _parse_subscription(s: str): s = s.strip() - split = s.split(".") + split = s.split(".", 1) # Split at the first period if len(split) != 2: logger.warning("invalid subscription:", s) return [None, None]