Skip to content

fix(futures): use listenKey query param for user data WebSocket#812

Merged
carlosmiei merged 1 commit intoccxt:masterfrom
Sora233:fix/futures_user_data
May 5, 2026
Merged

fix(futures): use listenKey query param for user data WebSocket#812
carlosmiei merged 1 commit intoccxt:masterfrom
Sora233:fix/futures_user_data

Conversation

@Sora233
Copy link
Copy Markdown
Contributor

@Sora233 Sora233 commented Apr 23, 2026

Background

Binance has changed USDS-M futures user data WebSocket URLs. The legacy pattern no longer receives user data over the WebSocket; clients must migrate to the new private endpoint and pass listenKey as a query parameter instead of a path segment.

Reference: Important WebSocket Change Notice – Compatibility & migration guidance

Changes

  • WsUserDataServe in v2/futures/websocket_service.go: build the URL as {private/ws base}?listenKey=<key> instead of {private/ws base}/<key>.

Copy link
Copy Markdown
Contributor

@sc0Vu sc0Vu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@carlosmiei the new URL works for me. Also we've used ?listenKey in other functions.

@carlosmiei carlosmiei merged commit 7bb44eb into ccxt:master May 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants