User Socket does not work

How can I receive order status updates?
I ran the following code and placed several Market orders.
Nothing is received.

def on_open(ws):
    print("opened connection to Binance streams")
def on_close(ws):
    print("closed connection to Binance streams")
def on_message(ws, message):
    print("message received from Binance streams")

key = client.futures_stream_get_listen_key()
ws = websocket.WebSocketApp(f'wss://fstream.binance.com/ws/{key}', on_open=on_open, on_close=on_close, on_message=on_message)
    ws.run_forever()
  1. Are you placing order on UM futures?
  2. Did you place on the production env?
  3. Did you place the order with the same api key that was used to create the listenkey?

Thanks for the reply.

  1. Yes. I am placing on USDT-M futures.
  2. no, Testnet.
  3. Yes. same api key.

solved. I could receive it on production environment. :rofl:
Is the test environment not yet supported?

Futures testnet is also functional, but you need to subscribe to the testnet websocket server:

wss://stream.binancefuture.com

https://binance-docs.github.io/apidocs/futures/en/#testnet