okxapi / python-okx

379 stars 148 forks source link

websocket无法使用代理连接 #36

Closed 17654567443224 closed 8 months ago

17654567443224 commented 11 months ago

WsClientFactory execute clientConnectionLost. Reason: [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionDone'>: Connection was closed cleanly. ],retried 2 times

avorobiev commented 9 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

okxapi commented 8 months ago

You may refer to this new example https://github.com/okxapi/python-okx/blob/master/test/WsPublicAsyncTest.py