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.