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, jsonapi_key = API_KEY
api_secret = API_SECRETclient = 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?