I use the endpoint wss://ws-api.binance.com/ws-api/v3 to successfully get listenKey value.
The question is where I can subscribe to User Data Stream via wss://stream.binance.com:9443/ws endpoint?
I tried in different ways but I get that listenKey is undefined.
Hi,
Are you actually including the listening key that you generated in your request to the User Data Stream Websocket? Take a look at this section of the documentation for reference.
- The base websocket endpoint is: wss://stream.binance.com:9443
- User Data Streams are accessed at /ws/< listenKey > or /stream?streams=< listenKey >