Cannot place order via websocket


I’m trying to place an order via WS, but I’m getting a strange error message as a response.

Here’s my message that I send:


And here’s the response:

{“error”:{“code”:2,“msg”:“Invalid request: unknown variant ``, expected one of `SUBSCRIBE`, `UNSUBSCRIBE`, `LIST_SUBSCRIPTIONS`, `SET_PROPERTY`, `GET_PROPERTY` at line 1 column 48”},“id”:1682431283231365000}

What could be wrong? Thanks!

Are you using base URL for the Websocket API?
Binance API Documentation → The base endpoint is: wss://

Yes, thank you! I didn’t realize that I needed to use another endpoint. I was still using the streaming one.