Skip to content

Commit dae449f

Browse files
Fix websocket parse of tickers with periods (#567)
1 parent 388b6e7 commit dae449f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: polygon/websocket/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ async def _unsubscribe(self, topics: Union[List[str], Set[str]]):
200200
@staticmethod
201201
def _parse_subscription(s: str):
202202
s = s.strip()
203-
split = s.split(".")
203+
split = s.split(".", 1) # Split at the first period
204204
if len(split) != 2:
205205
logger.warning("invalid subscription:", s)
206206
return [None, None]

0 commit comments

Comments
 (0)