trading-ig icon indicating copy to clipboard operation
trading-ig copied to clipboard

Stream failing. Cause: Websocket transport not available

Open mrxz44 opened this issue 4 months ago • 3 comments

Hi, anyone having issues with stream? I've tried sample 'stream_ig.py' with Live account credentials and looks like there is something with websocket connection.

Creating new v2 session for user 'ex_data_user' at 'https://api.ig.com/gateway/deal'
POST '/session', resp 200
Starting connection with https://apd.marketdatasystems.com
2024-10-21 14:28:51.483802|INFO |lightstreamer.actions|MainThread|serverAddress changed: https://apd.marketdatasystems.com
2024-10-21 14:28:51.483839|INFO |lightstreamer.actions|MainThread|user changed: null
2024-10-21 14:28:51.483855|INFO |lightstreamer.actions|MainThread|password changed
2024-10-21 14:28:51.484009|INFO |lightstreamer.actions|MainThread|Connection requested: details: [serverAddress => https://apd.marketdatasystems.com, libVersion => python_client 2.1.0 build 20231219] options: [requestedMaxBandwidth => BWUnlimited, retryDelay => 4000, firstRetryMaxDelay => 100, sessionRecoveryTimeout => 15000, reverseHeartbeatInterval => 0, stalledTimeout => 2000, reconnectTimeout => 3000, keepaliveInterval => 0, pollingInterval => 0, idleTimeout => 19000, contentLength => 50000000, slowingEnabled => false, serverInstanceAddressIgnored => false, HTTPExtraHeadersOnSessionCreationOnly => false]
2024-10-21 14:28:51.484048|INFO |lightstreamer.session|MainThread|Status: CONNECTING
2024-10-21 14:28:51.484735|INFO |lightstreamer.actions|MainThread|Subscription requested: subId: 1 [mode => MERGE, items => [MARKET:CS.D.BITCOIN.CFD.IP,MARKET:CS.D.EURUSD.MINI.IP,MARKET:IX.D.SPTRD.IFMM.IP], fields => [UPDATE_TIME,BID,OFFER,CHANGE,MARKET_STATE,CHANGE_PCT,HIGH,LOW], requestedSnapshot => SnpYes]
2024-10-21 14:28:51.485194|INFO |lightstreamer.actions|MainThread|Subscription requested: subId: 2 [mode => MERGE, items => [ACCOUNT:AU4YF], fields => [FUNDS,MARGIN,AVAILABLE_TO_DEAL,PNL,EQUITY,EQUITY_USED], requestedSnapshot => SnpYes]
2024-10-21 14:28:51.485375|INFO |lightstreamer.actions|MainThread|Subscription requested: subId: 3 [mode => DISTINCT, items => [TRADE:AU4YF], fields => [CONFIRMS,OPU,WOU], requestedSnapshot => SnpYes]
----------------------HIT CR TO UNSUBSCRIBE AND DISCONNECT----------------------
2024-10-21 14:28:51.688173|WARN |lightstreamer.session|Thread-2 (_hx_local_0)|Websocket suspended
2024-10-21 14:28:51.688272|ERROR|lightstreamer.session|Thread-2 (_hx_local_0)|Retrying connection. Cause: Websocket transport not available

image

mrxz44 avatar Oct 21 '24 11:10 mrxz44