We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b8e686 commit c27d8d3Copy full SHA for c27d8d3
alpaca_trade_api/stream2.py
@@ -31,7 +31,7 @@ async def _connect(self):
31
r = r.decode('utf-8')
32
msg = json.loads(r)
33
34
- if not 'data' in msg or msg['data']['status'] != 'authorized':
+ if 'data' not in msg or msg['data']['status'] != 'authorized':
35
raise ValueError(
36
("Invalid Alpaca API credentials, Failed to authenticate: {}"
37
.format(msg))
0 commit comments