question

Upvotes
Accepted
28 4 6 12

Is there a way to get exchange id/name from RIC or subscription code before receiving messages?

Hi,

We are using Reuters Elektron EMA C++. Is there a way to get the exchange code/id/name from RIC or the subscription code like (ESU7) before registering the consumer for the refresh and update callbacks at run time?

I know that you can get the exchange code/id in the refresh message (received via the callback) as the value of the field RDN_EXHID, but we wish to get this information at run time before subscribing.

Thanks.

elektronrefinitiv-realtimeelektron-sdkrrtema-apielektron-message-apiricsexchange-codes
icon clock
10 |1500

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

1 Answer

Upvotes
Accepted
7.6k 15 6 9

@mojtaba.danai

EMA does not have capability to get this information at run time before subscribing data. To get the data from TREP APIs(EMA/ETA/RFA) you have to send item request to provider server and then process the response message from item callback(Refresh/Update/Status) to get data from FID/Field you are monitoring.

From the description it sounds like you are implementing different class for request data for different Exchange, so you want to check Exchange name/code before choosing right class to open a new subscription?

If it's the case, you may need to re-design it to check Exchange code in the Refresh message and then copy data from callback and pass it to different data process logic for each Exchange instead.

icon clock
10 |1500

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