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 /
  • EMA /
avatar image
Question by peter.meszaros · Oct 19, 2018 at 04:55 AM · ema batch requestema batch

What is the maximum number of RICs in an EMA batch request?

Hi,

I attempted to implement batch request as it is described in Elektron-SDK/example/Ema/Training/Consumer/300_Series/370__MarketPrice__Batch/Consumer.cpp. What is the maximum number of RICs in a batch request? It looks like the limit is between 6000 and 7000. We have a group of RICs with ~18000 items and I had to break it up 4 batch requests.

Thanks

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.

4 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by moragodkrit.chumsri_1 · Oct 19, 2018 at 05:49 AM

In API, a batch is an array in the element entry. Its limitation is defined by the limitation of array and element entry. In case of a batch request, its array size is limited to around 65535 bytes because it is in the element entry. Therefore the maximum number of item vary on size of a number of character in item name you pass to the array as well.

Overall size should not over 65535 bytes and I think there is the reason that you get limit between 6000-7000 from your test.

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 · Oct 19, 2018 at 05:54 AM

Hi @peter.meszaros

There is a 65535 byte limit on the size of the ElementList entry that is used when making the Batch request.

Please refer to the ETAJ_Devguide in the section about ElementList for further details.

As you may know EMA is a wrapper around the lower level ETA.

So, the actual number of RICs you can request in a single batch will be determined by the total length of the individual RIC codes.

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
Answer by peter.meszaros · Oct 19, 2018 at 07:50 AM

Thanks moragodkrit, Umer.

Is this limit value can be included from any c++ header file?

Comment

People who like this

0 Show 1 · 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
moragodkrit.chumsri_1 ♦♦ · Oct 21, 2018 at 05:25 AM 0
Share

As far as I understand, we could not change it in EMA header.

avatar image
Answer by peter.meszaros · Oct 22, 2018 at 07:54 AM

I do not want to change the value but use it if exist. Instead of hardcoding 65535 in my codebase I would like to write something more elegant, like this:

if (ricslength > thomsonreuters::ema::access::MaxLength) { ... }

Comment

People who like this

0 Show 1 · 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
jirapongse.phuriphanvichai ♦♦ · Oct 29, 2018 at 03:29 AM 0
Share

I can't find it in the EMA code. In EMA, it is defined as a preprocessor macro.

#define MAX_UNSIGNED_INT16		0xFFFF

You can raise this concern via the Elektron-SDK GitHub.

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

How to interpret Login messages for invalid user/service for Java EMA api, We have to handle scenarios for "Closed/Suspect/User unknown to permissioning system, it could be DACS, AAA or EED".

While Using EMA Batch Request program get Closed automaticaly after some responces??

EMA chain RIC expansion

Exception Type='OmmInvalidUsageException', Text='Failed to rsslElementEntry.encode() while encoding rssl elementlist. Reason='INVALID_DATA''

Item request rejected, item count reached for this channel

  • 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
  • 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