I am using the Java library 5.2.1, Java 21 and Kotlin 2.2.0. I seem to login ok. I keep getting error 24 "Invalid mode for these items". As far as I can make out from the document on the labs site, DISTINCT is correct for CHART TICK. I get no errors if I put the equivalent into the streaming companion page https://labs.ig.com/sample-apps/api-streaming-companion-release/index.html.
val client = LightstreamerClient("https://push.lightstreamer.com", "DEMO")
client.connectionDetails.user = accountId
client.connectionDetails.setPassword("CST-${tokens.cst}|XST-${tokens.securityToken}")
val marketSubscription =
Subscription("DISTINCT", arrayOf("CHART:CS.D.GBPUSD.TODAY.IP:TICK"), arrayOf("Bid", "Ofr"))
marketSubscription.requestedSnapshot = "yes"
marketSubscription.dataAdapter = "QUOTE_ADAPTER"
val subListener = SystemOutSubscriptionListener()
marketSubscription.addListener(subListener)
client.subscribe(marketSubscription)
client.connect()
I get the same error no matter what changes I make to the subscription mode or items (event if items are invalid).
I cannot find the documentation for what dataAdapters are valid and what they do. The Javadocs refer to adapterSet.xml which I cannot find. I cannot find anything helpful for dataAdapters on https://labs.ig.com/streaming-api-guide.html
Data adapter of DEFAULT gives me an error, but unclear why.