Alpha Trading
WebSocket Market Data API
Basic Info
- The base URL for all WSS endpoints listed in this document is:
wss://nbstream.binance.com/w3w/wsa/stream
Subscribe / Unsubscribe Streams in Real Time
- You can subscribe to or unsubscribe from streams by sending messages over WebSocket. Examples are shown below.
- The
idin the request is used as a unique identifier to correlate request/response messages. The following formats are accepted:- 64-bit signed integer
- Alphanumeric string; max length 36
- null
- If
resultin the corresponding response isnull, it indicates the request was sent successfully.
Subscribe to a stream
Request
Code
Response
Code
Unsubscribe from a stream
Request
Code
Response
Code
List current subscriptions
Request
Code
Response
Code
Was this page helpful?
Last modified on