Skip to content

Commit

Permalink
Fix websocket parse of tickers with periods (#567)
Browse files Browse the repository at this point in the history
  • Loading branch information
justinpolygon authored Nov 27, 2023
1 parent 388b6e7 commit dae449f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion polygon/websocket/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit dae449f

Please sign in to comment.