Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions alpaca_trade_api/polygon/streamconn.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ async def subscribe(self, channels):
self._streams |= set(channels)
await self._ws.send(json.dumps({
'action': 'subscribe',
'params': streams
'params': list(streams)
}))

async def unsubscribe(self, channels):
Expand All @@ -167,7 +167,7 @@ async def unsubscribe(self, channels):
self._streams -= set(channels)
await self._ws.send(json.dumps({
'action': 'unsubscribe',
'params': streams
'params': list(streams)
}))

def run(self, initial_channels=[]):
Expand Down
4 changes: 2 additions & 2 deletions alpaca_trade_api/stream2.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ async def subscribe(self, channels):
await self._ws.send(json.dumps({
'action': 'listen',
'data': {
'streams': channels,
'streams': list(channels),
}
}))

Expand All @@ -129,7 +129,7 @@ async def unsubscribe(self, channels):
await self._ws.send(json.dumps({
'action': 'unlisten',
'data': {
'streams': channels,
'streams': list(channels),
}
}))

Expand Down