diff --git a/tastytrade/streamer.py b/tastytrade/streamer.py index f8bc54f..e992a9e 100644 --- a/tastytrade/streamer.py +++ b/tastytrade/streamer.py @@ -692,7 +692,7 @@ async def _connect(self) -> None: asyncio.create_task(self._heartbeat()) elif message['type'] == 'CHANNEL_OPENED': channel = next((k for k, v in self._channels.items() - if v == message['channel']), None) + if v == message['channel'])) self._subscription_state[channel] \ = message['type'] elif message['type'] == 'FEED_CONFIG':