Hi Alessandro
This was very helpful and worked fine thanks.
So now just looking to build and adapt. But already have an issue with "Cause: 2 - Requested Adapter Set not available"
Trying to locate the 'adapters.xml' but not in client dir, is this on Lightstreamer server?
This is the output:
Obtaining tokens...
Starting new HTTPS connection (1): demo-api.ig.com:443
https://demo-api.ig.com:443 "POST /gateway/deal/session HTTP/1.1" 200 617
Successfully obtained tokens
2024-06-14 09:51:57.778551|INFO |lightstreamer.actions|MainThread|serverAddress changed:
https://demo-apd.marketdatasystems.com
2024-06-14 09:51:57.778720|INFO |lightstreamer.actions|MainThread|adapterSet changed: DEMO
2024-06-14 09:51:57.778792|INFO |lightstreamer.actions|MainThread|user changed: ******
2024-06-14 09:51:57.778840|INFO |lightstreamer.actions|MainThread|password changed
2024-06-14 09:51:57.778887|INFO |lightstreamer.actions|MainThread|adapterSet changed: DEMO
2024-06-14 09:51:57.780093|INFO |lightstreamer.actions|MainThread|Subscription requested: subId: 1 {mode => MERGE, items => [CS.D.GBPUSD.CFD.IP], fields => [BID,OFFER,HIGH,LOW], dataAdapter => QUOTE_ADAPTER, requestedSnapshot => SnpYes}
2024-06-14 09:51:57.780481|INFO |lightstreamer.actions|MainThread|Connection requested: details: {serverAddress =>
https://demo-apd.marketdatasystems.com, adapterSet => DEMO, user => ********, libVersion => python_client 1.0.3 build 20230622} 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-06-14 09:51:57.780617|INFO |lightstreamer.session|MainThread|Status: CONNECTING
2024-06-14 09:51:57.780756|DEBUG|lightstreamer.stream|MainThread|WS connecting:
https://demo-apd.marketdatasystems.com/lightstreamer headers(null)
2024-06-14 09:51:58.095957|DEBUG|lightstreamer.stream|LS_IO|WS event: open
2024-06-14 09:51:58.102420|INFO |lightstreamer.protocol|Thread-3|Sending session create: LS_adapter_set=DEMO LS_user=********* LS_cid=v Wntytg4pkpW36AK3P4hwLri8M4OA68h8x LS_send_sync=false LS_cause=api
2024-06-14 09:51:58.109013|DEBUG|lightstreamer.stream|Thread-3|WS sending: wsok
2024-06-14 09:51:58.109138|DEBUG|lightstreamer.stream|Thread-3|WS sending: create_session
LS_adapter_set=DEMO&LS_user=*******&LS_cid=v%20Wntytg4pkpW36AK3P4hwLri8M4OA68h8x&LS_send_sync=false&LS_cause=api&LS_password=CST-714d51ac4819********************************bfba3cebc862597CC01115%7CXST-7af4a8312e4a********************************2a8bfb0b2cfa04f5419a18ca3f9dCD01115
2024-06-14 09:51:58.153643|DEBUG|lightstreamer.stream|LS_IO|WS event: text(WSOK)
2024-06-14 09:51:58.153865|DEBUG|lightstreamer.protocol|Thread-3|WSOK
2024-06-14 09:51:58.159224|DEBUG|lightstreamer.stream|LS_IO|WS event: text(CONERR,2,Requested Adapter Set not available)
2024-06-14 09:51:58.166283|DEBUG|lightstreamer.protocol|Thread-3|CONERR 2 Requested Adapter Set not available
2024-06-14 09:51:58.166345|DEBUG|lightstreamer.stream|Thread-3|WS disposing
2024-06-14 09:51:58.172740|INFO |lightstreamer.session|Thread-3|Status: DISCONNECTED
2024-06-14 09:51:58.172801|ERROR|lightstreamer.session|Thread-3|Disconnected. Cause: 2 - Requested Adapter Set not available
Thanks
James