Handshake status 500 handshakefailed when running the markety_price.py example code.

Hi,

When running the Python code (I use Python) market_price.py from the WebSocket API Sample Applications (link) Iget the following:

Connecting to WebSocket ws://hostname:15000/WebSocket ...
Handshake status 500 handshakefailed
WebSocket Closed

I do have the market data server setup (ADS) within my environment that supports the WebSocket API and I am able to login via the interactive guide on the developer's portal.

Could anyone explain to me how this must be done correctly?

I fail to see what I should do other than setting the default global variables to my values and then run the code.

Thanks in advance,

I hope my question is sufficiently clear,

Best regards

Best Answer

  • nick.zincone
    nick.zincone admin
    Answer ✓

    Hi @mehdi.el.hamzaoui,

    If all other examples failed and it works in your browser only, there must be something different in the route of your access when you are in your browser. Confirm you are able to successfully send requests and receive responses in your browser just to make sure. Also, check your logs in the ADS for additional details related to your different tests. Confirm both the browser connection and application connects to compare.

Answers