Dear XTers,
To improve market data transmission efficiency, reduce bandwidth usage, and enhance the stability and overall performance of our WebSocket services, XT will upgrade its Spot and Futures public WebSocket market data streams starting at 08:00 on December 10, 2026 (UTC).
After the upgrade, mandatory compression will be enabled for all Spot and Futures public WebSocket market data streams. Clients that do not support or enable compression will no longer be able to establish connections.
API users are advised to make the necessary adjustments as soon as possible.
1. Scope of Impact
- No action required: Compression is already enabled by default in the XT App and on the XT website. Regular users do not need to take any action.
- Unaffected Services: Spot and Futures private WebSocket streams (including account, order, and position updates) and REST APIs will remain unaffected.
- Action Required: API users accessing Spot and Futures public market data through WebSocket connections must enable compression.
2. Schedule
- Effective Immediately: API users are encouraged to enable compression and complete compatibility testing using the existing WebSocket endpoints, which already support compression.
- Starting December 10, 2026, at 08:00 (UTC): Connections that fail to negotiate compression (
permessage-deflate) with the server will be rejected.
3. How to Enable Compression
WebSocket Endpoints
| Service | Endpoint |
| Spot Public Market Data | wss://stream.xt.com/public |
| Futures Public Market Data | wss://fstream.xt.com/ws/market |
XT uses the standard WebSocket compression extension permessage-deflate (RFC 7692).
Compression and decompression are handled automatically by supported WebSocket libraries. The message content and format will remain unchanged, so no changes to your business logic are required.
You only need to enable compression when establishing a WebSocket connection.
Configuration by Language / Library
| Language / Library | Compression Configuration |
| Python websockets | Enabled by default. No changes required. |
| Python aiohttp | session.ws_connect(url, compress=15) (Disabled by default; configuration required) |
| Python websocket-client | Compression is not supported. Switch to websockets or aiohttp. |
| Node.js ws / Built-in WebSocket | Enabled by default. No changes required. |
| Go gorilla/websocket | websocket.Dialer{EnableCompression: true} |
| Java Netty | Add WebSocketClientCompressionHandler.INSTANCE to the pipeline. |
| C++ Boost.Beast | permessage_deflate opt; opt.client_enable = true; ws.set_option(opt); |
| Browser | Enabled by default. No changes required. |
How to Verify Compression
After establishing a successful WebSocket connection, check the server's handshake response headers.
If the response contains:
Sec-WebSocket-Extensions: permessage-deflateCompression has been successfully negotiated, and no further action is required.
Important Notes
- Please complete the necessary adjustments and testing before December 10, 2026, to avoid disruptions to market data reception and trading strategies.
- Institutional users who require assistance or an extended transition period should contact their account manager.
- For more information, please refer to the XT API Documentation.
Thank you for your support!
XT Team
November 10, 2026
Create Your XT Exchange Account Now
Join the XT Exchange Community:
X (Twitter) | Telegram | Facebook | LinkedIn | Medium | YouTube | Instagram
Start Trading:
Spot | Margin | Futures | Copy Trading | XT Earn
XT Exchange reserves the right, at its sole discretion, to modify, amend, or cancel this announcement at any time for any reason without prior notice.