Can't get order status via listenkey

I created several futures orders, they were filled, and now I want to check their status through listenkey

from binance.client import Client
import websocket, json

api_key = API_KEY
api_secret = API_SECRET

client = Client(api_key, api_secret)
listen_key = client.futures_stream_get_listen_key()
socket = f’wss://fstream.binance.com/ws/{listen_key}’

def on_message(ws,message):
data = json.loads(message)
print(data)

def on_close(ws, close_status_code, close_msg):
print("### closed ###")

ws = websocket.WebSocketApp(socket, on_close=on_close, on_message=on_message)
ws.run_forever()

But I don’t get any information what is the reason?

  1. are you placing the order on production site?
  2. are you placing the order with the same api key that used to create listen key?

websocket is a permanent connection that transmits what is happening at the moment.

if you want to check the status afterwards, please use the REST Api and instead of websocket!