alpacahq / Alpaca-API

The Alpaca API is a developer interface for trading operations and market data reception through the Alpaca platform.
https://alpaca.markets/
144 stars 13 forks source link

stream disconnected for internal error #195

Open kwang1971 opened 3 years ago

kwang1971 commented 3 years ago

Describe the bug sometimes stream was disconnected and could not resume, need to restart the stream. the error information as following: WARNING:alpaca_trade_api.stream:websocket error, restarting connection: code = 1006 (connection closed abnormally [internal])

Stream V2

noramehesz commented 3 years ago

Hello! In order to help you please share some detalis:

kwang1971 commented 3 years ago

yes, I use the alpaca-trade-api, version is 1.2.0

noramehesz commented 3 years ago

Then I think it is the Python SDK, and when this disconnection happens, is there a specific timeframe for this or randomly happens?

kwang1971 commented 3 years ago

randomly

noramehesz commented 3 years ago

Okey, then please give me your IP and accountID, I will try to find out if there was a problem at our side, thank you!