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 dhruv.arora · Aug 18, 2020 at 08:45 PM · elektronrefinitiv-realtimeelektron-sdkrrtema-apielektron-message-apiswaps

ChainStepByStepExample gives only names but require swap rates

Hi

I am following the "ChainStepByStepExample" example from github link

https://github.com/Refinitiv-API-Samples/Example.EMA.Java.ValueAddObjectsForEMA

But this example only gives only names of all elements of the chain. I want streaming of real time EUR BID,ASK and mid swap rates in real time for all the tenors that are available along with the name of the contributor and timestamp, from Elektron using RIC EURAB6EIRS=



Is there any example code, that can fetch me this kind of data?

Thanks

Dhruv


1597783309668.png (261.7 KiB)

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 zoya faberov · Aug 19, 2020 at 12:58 PM

Hello @dhruv.arora,

EURAB6EIRS= is a chain RIC, rather then a single level RIC. So it will not have BID and and ASK directly, the constituents of the chain will have BID and ASK fields.

In order to process that programmatically, you will need to do a two-step:

1. Subscribe to chain RIC EURAB6EIRS= and obtain a list of RICs within the chain. The articles with code that I have mentioned above should be of help.

2. Take the list of RICs obtained in step 1 and subscribe all those RICs (for example, in chain EURAB6EIRS= the first RIC is EURAB6E1Y=, once you subscribe this constituent RIC, BID and ASK will be part of that stream.

Comment
dhruv.arora

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
REFINITIV
Answer by zoya faberov · Aug 18, 2020 at 09:04 PM

Hello @dhruv.arora,

The concept of the chain is designed to convey a united set of instruments, RICs. The set is expected to update, and by requesting and parsing "the chain" one always has the list of RICs that is up-to-date,

Have you had a chance to read our articles on the subject

Simple Chain objects for EMA - Part 1

and

Simple Chain objects for EMA - Part 2

I think it will be helpful for understanding of the structure and intention.

Eikon, consequent to the retrieval of the list of instrument, behind the scene, subscribes each instrument and lays out the required subset of fields.

A consumer examples from EMA SDK, such as EMA MarketPrice Streaming Example 100 or for ERT, EMA MarketPrice SessionManagement 113 will contain the code to subscribe a RIC.

Example 370, Market Price Batch, shows how to subscribe to a batch of instruments.

Once you have a list of RICs as your result from chain retrieval, any of this code can be used to subscribe an instrument or a group of instruments.

Also ChainStepByStepExample project includes MarketPriceStepByStepExample code to do the same, to subscribe an instrument,

And the detailed description of the steps required can be found in articles:

A simple MarketPrice object for EMA - Part 1

and

A simple MarketPrice object for EMA - Part 2

Hope this helps

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 dhruv.arora · Aug 19, 2020 at 02:07 AM

Hi

I am following the example from Marketprice example from the link

https://github.com/Refinitiv-API-Samples/Example.EMA.Java.ValueAddObjectsForEMA/tree/c102e99e24467c9a5929fa2548f1b9367c3e6173/src/com/thomsonreuters/platformservices/elektron/objects/examples/marketprice


In Example step 12 of the MarketPriceStepByStepExample class, when I give the RIC name as "EURAB6EIRS=" instead of "EUR=", it throws the following error:

.............................................................................

. 12/17 - openAMarketPrice_And_DisplayCachedFieldsEvery2Seconds_SynchronousMode_UserDispatch()

.............................................................................

. This step demonstrates that even if you built the MarkePrice with the

. synchronous mode activated, you continue to benefit from the automatic

. update mechanism of the cached image.

. For the purpose of this demonstration, we build a MarketPrice with the

. SynchronousMode activated and, as soon as the open() method returns, we

. display the DSPLY_NAME,the BID and the ASK fields every 2 seconds.

. It is important to note that the OmmConsumer object used for this step

. has been built using the USER_DISPATCH EMA operation model. For this reason

. the MarketPrice object is built with the synchronous mode activated but

. also with the autodispatch parameter set to true. Thanks to this parameter

. the open method of the MarketPrice will dispatch EMA events until an image

. or a status is received from the platform.

<<< Press <Enter> to continue...

>>> Opening <EURAB6EIRS=>

>>> Display fields every 2 seconds just after open() returned:

>>> Fields at 22:04:36

DSPLY_NAME(3) = EUR AB6E IRS

Exception in thread "main" java.lang.NullPointerException

at MarketPriceASKBID.MarketPriceStepByStepExample.print(MarketPriceStepByStepExample.java:1341)

at MarketPriceASKBID.MarketPriceStepByStepExample.openAMarketPrice_And_DisplayCachedFieldsEvery2Seconds_SynchronousMode_UserDispatch(MarketPriceStepByStepExample.java:679)

at MarketPriceASKBID.MarketPriceStepByStepExample.main(MarketPriceStepByStepExample.java:103)


But Example step 11 works good with "EURAB6EIRS="

Can somebody let me know the reason? I need to get ASK and BID for "EURAB6EIRS="

Thanks

Dhruv

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

Related Questions

bid, ask and mid side of the swap rate

(JAVA) Does using interestAfterRefresh(false) remove the need for deregistering items with Elektron?

EMA CPP - Exception adding ric into OmmArray

Login Domain - Components and Elements in Login responses

Error: Login Stream closed with msg : Text: Received ChannelUp event on channel Channel_1 Instance Name Consumer_1_1 Component Version upa7.6.0.L1.win.rrg 64-bit Static

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • 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
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • 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
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges