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 yajnasteju · Oct 01, 2016 at 01:34 AM · emanewsmrn

MRN News Issue in registering for PNAC inside the callback

Hello ,

I am developing a news Consumer (N2_UBMNS - MRN News) . I understood the flow of resubscribing to PNAC's on update messages ,

however , when I am subscribing again using the same OmmConsumer with PNAC received , I am not getting any further data .

I am subscribing inside the onUpdate function of the Client.

However , if I hardcode the PNAC and subscribe , I am getting further data .

Is there any thing that happens internally after the onUpdate callback , that is blocking my subscription request to the Provider ?

I would like to know the best approach to subscribe again and the maximum PNAC's that can be subscribed using the same OMMConsumer object .

void NewsClient::decode(const FieldList& fl) {

// adding PNAC into an OmmArray
registerAgain(pnacArray); // registetring the array with same Consumer

}

Kinldy help resolve this

Thanks in advance

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.

1 Reply

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by warat.boonyanit · Oct 03, 2016 at 08:01 AM

Hi @yajnasteju

You should be able to call registerClient() inside onUpdate().

It looks more like you have a problem with your registerAgain() function.

Since PNAC is a single RIC, I don't understand why you have to add PNAC into an OmmArray.

Here I modified the 310 training example to subscribe PNAC inside onUpdate(), please take a look.

310-marketprice-rmtes.zip


310-marketprice-rmtes.zip (1.3 KiB)
Comment
yajnasteju

People who like this

1 Show 2 · 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
yajnasteju · Oct 05, 2016 at 04:05 AM 0
Share

Hi @Warat.B

Thanks for your support . It is working , I jus changed the array part as you said .

Also can you please help me differentiate between a news headline and a story

avatar image
REFINITIV
warat.boonyanit ♦♦ yajnasteju · Oct 06, 2016 at 06:32 AM 0
Share

You mean, differentiate between N2_UBMS and the story you access via PNAC?

You can just check the RIC name in your callback. Beside, the story that you subscribe from PNAC will always come as a refresh, while the headline from N2_UBMS will come as an update.

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 >
11 People are following this question.

Related Questions

Limit Exceeded Issue in EMA Consumer application - News and market data

Where can I find sample EMA C++ MRN code for Elektron API 3.1? not in the Elektron-SDK1.1.0.win_0 100-440 examples.

MRN: Uniqueness and ordering

How to Convert C ++ to C EMA in Linux

Exception while subscribing for news

  • 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