Dear valued customers,
We are going to support the returning of compressed messages from the WebSocket API in order to improve the data transmission efficiency. By the time of the implementation of the update, all users will have to decompress the messages themselves after receiving the data package.
The above update will be launched at 18:00 Oct 16, 2018 (HKT). Meanwhile, we will support the transmission of both compressed and uncompressed messages simultaneously for two week after the launch. Afterward, we will no longer support the transmission of uncompressed messages from 12:00 Oct 30, 2018 (HKT). All users are strongly advised to review their settings in order to continue using the API normally.
Method of getting compressed messages: add parameter "compress=true" to the request URL. Our system will eventually ignore the "compress" parameter and return the compressed message directly.
Compressed message: spot:wss://real.okex.com:10441/websocket?compress=true; future:wss://real.okex.com:10440/websocket/okexapi?compress=true;
Uncompressed message: spot:wss://real.okex.com:10441/websocket ;future:wss://real.okex.com:10440/websocket/okexapi; Demo:https://github.com/okcoin-okex/API-docs-OKEx.com/tree/master/demo
For more details, please refer to the Readme document of the v1 WebSocket API.
Thank you for your attention and understanding as we work to make our API a better trading tool for all.
Oct 16, 2018