Closed 17654567443224 closed 8 months ago
Try to use "wss://wspap.okex.com:8443/ws/v5/public" instead of "wss://wspap.okx.com:8443/ws/v5/public". For more information look at closed issue https://github.com/okxapi/python-okx/issues/17 and linked with it https://github.com/twisted/twisted/issues/11928
You may refer to this new example https://github.com/okxapi/python-okx/blob/master/test/WsPublicAsyncTest.py
WsClientFactory execute clientConnectionLost. Reason: [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionDone'>: Connection was closed cleanly. ],retried 2 times