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 ee5ebc1 commit a2187edCopy full SHA for a2187ed
alpaca_trade_api/stream2.py
@@ -46,6 +46,8 @@ async def _connect(self):
46
(f"Invalid Alpaca API credentials, Failed to "
47
f"authenticate: {msg}")
48
)
49
+ else:
50
+ self._retries = 0
51
elif msg.get('data', {}).get('error'):
52
raise Exception(f"Error while connecting to {self._endpoint}:"
53
f"{msg.get('data').get('error')}")
0 commit comments