Cancellation of limiti orders and disconnection

Hello everyone ,
I’m having hard time trading in the paper API.
I’m using python 3.6 with the API library.
I keep getting my limit sell orders canceled as soon as they triggered in addition im having connection problems at the same time.
The error i’m getting is below:
Error in data transfer



websockets.exceptions.ConnectionClosedError: code = 1006 (connection closed abnormally [internal]), no reason
i believe this issue is related somehow to the socket trying to read data and failing to do so.
did it happen to someone here also and know how to solve it? thanks.

Could you upgrade to the latest SDK v0.38?

This should solve most of such error, but let us know if you still see the issue.

I still see this issue (yesterday, ~8 minutes from market close). I’m using the latest Python SDK:

alpaca-trade-api 0.42

a resolution is much appreciated,

Amichay