Jump to content
Sign in to follow this  
vklimk

PreLogin markets subscription details

Recommended Posts

We are trying to utilize CITYINDEXSTREAMINGDEFAULTPRICES subscription (on Live).

Subscription is performed successfully but we receive “Wrong item number” error when updates from lightstreamer are received (in ConnectionListener::onDataError() lightstreamer callback). Subscription’s parameters are the following:

  • Adapter=CITYINDEXSTREAMINGDEFAULTPRICES
  • DataAdpater=PRICES
  • SubscriptionItem=AC2347
  • Mode=MERGE
  • Schema={“MarketId”, “Name”}
  • isSnapshot=true

Q1. Could you please check what is wrong with the subscription?

Q2. Could you please provide us with full schema (fields) for the subscription?

Share this post


Link to post
Guest sky.sanders

i can confirm that the c# integration test, CanConsumeDefaultPricesStream, gives expected results.

Share this post


Link to post
Guest mrdavidlaing

The full schema is any of the properties that appear on the PriceDTO – seehttps://ciapipreprod.cityindextest9.co.uk/ciapi.docs/#stream.DefaultPrices

I can’t answer Q1 without more information on how your code works. However, CIAPI.CS contains a working implementation of connecting to the DefaultPrices stream –

https://github.com/cityindex/CIAPI.CS/blob/master/src/CIAPI.IntegrationTests/Streaming/DefaultPricesFixture.cs

You could try contrast your code with CIAPI.CS to identify the error.

Share this post


Link to post
Guest sky.sanders

We are trying to utilize CITYINDEXSTREAMINGDEFAULTPRICES subscription (on Live).

Subscription is performed successfully but we receive “Wrong item number” error when updates from lightstreamer are received (in ConnectionListener::onDataError() lightstreamer callback). Subscription’s parameters are the following:

  • Adapter=CITYINDEXSTREAMINGDEFAULTPRICES
  • DataAdpater=PRICES
  • SubscriptionItem=AC2347
  • Mode=MERGE
  • Schema={“MarketId”, “Name”}
  • isSnapshot=true

Q1. Could you please check what is wrong with the subscription?

Q2. Could you please provide us with full schema (fields) for the subscription?

have you had any progress on this issue?

Share this post


Link to post

The full schema is any of the properties that appear on the PriceDTO – seehttps://ciapipreprod.cityindextest9.co.uk/ciapi.docs/#stream.DefaultPrices

I can’t answer Q1 without more information on how your code works. However, CIAPI.CS contains a working implementation of connecting to the DefaultPrices stream –

https://github.com/cityindex/CIAPI.CS/blob/master/src/CIAPI.IntegrationTests/Streaming/DefaultPricesFixture.cs

You could try contrast your code with CIAPI.CS to identify the error.

We have contrasted our code (Java for android) with yours. Everything is the same except fields schema.

After updating the schema streaming start to work a little bit better – it returns information about one market (EUR/USD) but for other 7 markets it raises the same error (“Wrong item number”) when update from server is received.

We suppose that issue may be in android lightstreamer library (we have build 6 while the recent build is 8) or in lightstreamer server configuration. Are there people here who have access to CityIndex lightstreamer server configuration to verify CITYINDEXSTREAMINGDEFAULTPRICES (find difference with CITYINDEXSTREAMING for example)?

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×