I don't believe there is an EMA function which will allow you to subscribe[registerClient] to all the underlying RICs in the chain. So in lieu of this functionality, I wish to pull FIDs from a RIC to determine if it is a chain RIC. From that I can likely subscribe to the associated LONGLINK 1-14 (FID 800 - 813) and see if the LONGNEXTLR (FID:815) has a value to keep pulling in further RICs.
Is the field REF_COUNT(239) a reliable field to use to determine if I'm dealing with a chain?
Hi @Nana,
You are correct, EMA does not have the capability to automatically subscribe to the underlying RICs within a chain. In general, you will have to look for a specific field within the response message to determine if you are working with a chain. The reference to the LONGLINK 1-14 and REF_COUNT are fields which you can use as reliable indicators you are dealing with a chain. The LONGNEXTLR and LONGPREVLR are only present if you have additional/previous records within the chain.
In general, the REF_COUNT field should be a sufficient indicator.
Hi @Nana,
Nick is absolutely right.
You also have to know that you may encounter different types of chains. They all work the same but use different fields that support different sizes of RICs. See bellow:
These 3 types of chain use the same REF_COUNT to indicate the number of links used by the chain element.
I’m going to write an article with much more details about chains. I’ll keep you posted via this question.
Hi @Nana,
You may be interested by the following articles and the source code that goes with them:
EMA CPP - Exception adding ric into OmmArray
Is there a way to get holiday calendar for markets (instrumen wise or general) using Java API?
Where do I get the Reuters Instrument Code (RIC) ?
Elektron EMA Thailand Data Feed FIDs
How can I find Non-deliverable Forward RIC for BRL, CLP, COP, IDR, KRW, MYR, PEN, PHP, RUB, VND ?