TREP Websocket connection issues : python example market_price.py unable to connect: Error 400

The example websocket python script connects after 7 or 8 tries. Please see below for logs

(tensorflow) C:\Users\Raghav.Atal\Documents\Developer\external_code_repos\websocket-api\Applications\Examples\python>python market_price.py --host trep-dacs-main.corp.stonex.com --user MDHUB

Connecting to WebSocket ws://trep-dacs-main.corp.stonex.com:15000/WebSocket ...

Handshake status 400 OK

on_close() takes 1 positional argument but 3 were given


(tensorflow) C:\Users\Raghav.Atal\Documents\Developer\external_code_repos\websocket-api\Applications\Examples\python>python market_price.py --host trep-dacs-main.corp.stonex.com --user MDHUB

Connecting to WebSocket ws://trep-dacs-main.corp.stonex.com:15000/WebSocket ...

Handshake status 400 OK

on_close() takes 1 positional argument but 3 were given


(tensorflow) C:\Users\Raghav.Atal\Documents\Developer\external_code_repos\websocket-api\Applications\Examples\python>python market_price.py --host trep-dacs-main.corp.stonex.com --user MDHUB

Connecting to WebSocket ws://trep-dacs-main.corp.stonex.com:15000/WebSocket ...

Handshake status 400 OK

on_close() takes 1 positional argument but 3 were given


(tensorflow) C:\Users\Raghav.Atal\Documents\Developer\external_code_repos\websocket-api\Applications\Examples\python>python market_price.py --host trep-dacs-main.corp.stonex.com --user MDHUB

Connecting to WebSocket ws://trep-dacs-main.corp.stonex.com:15000/WebSocket ...

Handshake status 400 OK

on_close() takes 1 positional argument but 3 were given


(tensorflow) C:\Users\Raghav.Atal\Documents\Developer\external_code_repos\websocket-api\Applications\Examples\python>python market_price.py --host trep-dacs-main.corp.stonex.com --user MDHUB

Connecting to WebSocket ws://trep-dacs-main.corp.stonex.com:15000/WebSocket ...

Handshake status 400 OK

on_close() takes 1 positional argument but 3 were given


(tensorflow) C:\Users\Raghav.Atal\Documents\Developer\external_code_repos\websocket-api\Applications\Examples\python>python market_price.py --host trep-dacs-main.corp.stonex.com --user MDHUB

Connecting to WebSocket ws://trep-dacs-main.corp.stonex.com:15000/WebSocket ...

Handshake status 400 OK

on_close() takes 1 positional argument but 3 were given


(tensorflow) C:\Users\Raghav.Atal\Documents\Developer\external_code_repos\websocket-api\Applications\Examples\python>python market_price.py --host trep-dacs-main.corp.stonex.com --user MDHUB

Connecting to WebSocket ws://trep-dacs-main.corp.stonex.com:15000/WebSocket ...

WebSocket successfully connected!

Find more posts tagged with

Sort by:
1 - 1 of 11