MD request error

Anyone encounter this error before ? Any ideas on what to check for ?

headers = CaseInsensitiveDict()
headers[“Accept”] = “application/json”
headers[“Content-Type”] = “application/json”
headers={‘Authorization’: 'Bearer ’ + mdtoken}
headers[“accept-encoding”] = “gzip”

md_payload = {“symbol”:“ZNM2”}

md_request =‘’, headers=headers, json=md_payload)

<Response [200]>

operation isn’t supported.

Operation would be a POST request in this case. It looks like that you’re POST-ing against a websocket endpoint.

The docs claim that you can use both but in many cases you can’t. However, in this case… the docs make it pretty clear (I think). The endpoint is definitely in the websocket section.

Yes I can confirm that this endpoint should be used with a websocket. Use the wss:// URL with a new WebSocket. You’ll probably want to browse the WebSockets section of the docs first.

Thank you all ! I will give this ‘wss://’ and circle back.
I appreciate the feedback.