Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Elektron /
  • ETA /
avatar image
Question by manning0218 · May 17, 2017 at 01:36 PM · batchrequeststreamid

How to pass streamId in a batch message.

Is there a way to pass a specific streamId when encoding a message.

In the example we have this:

for(i = 0; i < itemCount_; i++)
		{
			itemName.data = marketPriceItemInfoList_[i].itemname;
			itemName.length = marketPriceItemInfoList_[i].nameLength;
			marketPriceItemInfoList_[i].streamId = ++streamId;
			if((ret = rsslEncodeArrayEntry(&encodeIter, &itemName, 0)) < RSSL_RET_SUCCESS)
			{
				printf("rsslEncodeArrayEntry() failed with return code: %d\n", ret);
				return ret;
			}
		}

which is the for loop when sending a batch request. What I was wondering if there is a way when dealing with encoding a batch request to send a specific streamId in rsslEncodeArrayEntry()?

If not how is the streamId determined when the request is finished being processed?

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

3 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by nick.zincone.1 · May 17, 2017 at 02:34 PM

Hi @manning0218,

The streamID in a batch request is set when setting up the request message.

RsslRequestMsg msg = RSSL_INIT_REQUEST_MSG;
...

/* set-up message */
msg.msgBase.msgClass = RSSL_MC_REQUEST;
msg.msgBase.streamId = streamId;

However, the streamId associated with the batch request is only used to acknowledge the receipt of the request. When the Provider successfully receives the request, the application will receive a status message indicating the batch was received and will close the stream. It is up to the application, through REFRESH and STATUS messages to determine when the complete batch has been processed.

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
Answer by umer.nalla · May 18, 2017 at 05:13 AM

Hi @manning0218

Please refer to the ETA developer guide section on Batch Requests ( section 13.7.1 in v3.0.2 of the document)

As explained the developer specifies a StreamId for the request message and then incremental StreamID are assigned for the items in response.

In the above figure, the consumer uses streamId 4 to send a batch request for three items, having ensured that streamIds 5, 6, and 7 are free and not already being used by existing open streams. The server acknowledges the batch request by responding with an RsslStatusMsg on streamId 4, and provides the response for each of the three items on streamIds 5, 6, and 7, respectively.

As explained by Nick above, streamId 4 will be closed off once you have received the status msg.


batchrequesteta.png (22.2 KiB)
Comment
jirapongse.phuriphanvichai

People who like this

1 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
Answer by manning0218 · May 18, 2017 at 09:08 AM

Thank you both for your answers. It makes more sense what is going on with the batch request now.

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
9 People are following this question.

Related Questions

streamId generated for ETA batch request

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges