Are there any websocket endpoints for margin and isolated margin?

I see REST endpoints used for handling margin listen keys but I don’t see any socket endpoints. Is that an upcoming feature?

wss:// this is the base url for websocket, more details from here:

So the websocket events below will work for both spot and margin?


yes :slight_smile:

Sorry my question was poorly worded.

Are there any data streams to go with the margin listen keys?

similar to spot, create a the listenkey for margin from :
POST /sapi/v1/userDataStream