I followed the EDP tutorial on https://github.com/Refinitiv/websocket-api/tree/master/Applications/Examples/EDP/python; however, none of the files could run on my machine. I'm sure I have python 3.6.7 and websocket-client greater than 0.49.
For the get token part, I got error for 502 bad gateway. I tried rewrote the function by myself and it worked, but then for market_price_edpgw_service_discovery.py, I got stuck at the connecting to WebSocket part. It showed WebSocket Closed for session1.
If you can provide the output from the example when you run it, that may help us understand what is going wrong. At present, the information you have provided is not sufficient to perform any diagnostic. You can remove any username / password etc from the output.
Also, it may be useful to know what changes you made to the other example to make it work...
Can you confirm you have a valid machine-id for username and password when running the service_discovery example?
Also, for the market_price_edpgw_authentication example you will need a valid hostname too.