algo2t / alphatrade

Python APIs for SAS Online Alpha Trade Web platform for creating algo trading using python
https://algo2t.github.io/alphatrade
MIT License
44 stars 23 forks source link

Websocket not starting #23

Closed raja-vignesh closed 2 years ago

raja-vignesh commented 2 years ago

Websocket is not opening since morning, it was working till yesterday. If I use an earlier version of Alphatrade to test, there also WebSocket not working(which used to work) and throwing error ERROR:websocket:error from callback <bound method AlphaTrade.on_close_callback of <alphatrade.alphatrade.AlphaTrade object at 0x000001873CD0EF48>>: on_close_callback() takes from 1 to 2 positional arguments but 4 were given. Please look into it.

raja-vignesh commented 2 years ago

Hi @algo2t, ,WebSocket is throwing the below error in on_error_callback <websocket._app.WebSocketApp object at 0x000002251BF8EF48> [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1091) Modifying the ws_run_forever with " self.__websocket.run_forever(sslopt={"cert_reqs": ssl.CERT_NONE})" seems to be fixing the issue. Yet to be tested in live mkt. Please validate it.

raja-vignesh commented 2 years ago

working now