404 Error when trying to subscribe, Python

New to the API Life, not to python. Loving the challenge but it is wild trying to nail it down. I am trying to subscribe to get real time quotes and it is getting close. I am getting this response.

Auth response: o
Sync response: a[{"s":200,"i":0}]
Subscribed: a[{"s":404,"i":,"d":"\"Not found: {\\\"msgId\\\": 2, \\\"op\\\": \\\"md/subscribeQuote\\\", \\\"args\\\": {\\\"id\\\": \\\"ESU5\\\"}}\""}]
Received: h
Received: h
Received: h
Received: h
Received: h

I will not bore you but the part I am wrestling with is this:

   await ws.send(json.dumps({
        "msgId": 2,
        "op": "md/subscribeQuote",
        "args": {"name": "ESU5"}
    }))
    print("Subscribed:", await ws.recv() 

What’s good? This seems like it should punch in. Thank you guys.

Fixed it, thanks community.

1 Like