Skip to content

Commit 209c5c0

Browse files
committed
Fix Polygon auth message format
1 parent 9e4d83b commit 209c5c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

alpaca_trade_api/polygon/stream2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ async def authenticate(self):
6161
status = data.get('status')
6262
if (stream == 'status'
6363
and msg == 'authenticated'
64-
and status == 'success'):
64+
and status == 'auth_success'):
6565
# reset retries only after we successfully authenticated
6666
self._retries = 0
6767
await self._dispatch(data)

0 commit comments

Comments
 (0)