question

Upvotes
Accepted
119 6 6 17

Retrieve Field Value for Chain Constituents using Refinitiv.Data Library under .Net

I want to know if as it’s the case when using get_data function for Eikon Library under Python, and as shown below, is it possible with Refinitv.Data Library under .Net (C#) to get when asking Chain not only Constituents but also fields value requested for each constituent.

Indeed, when using Chain function we are not able to define fields to request.

1671122446581.jpeg


1671122457435.jpeg

#technologyrefinitiv-data-platformc#.netchain-ric
1671122446581.jpeg (9.1 KiB)
1671122457435.jpeg (21.1 KiB)
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.

Upvote
Accepted
18.6k 85 39 63

Hi @anass.yazane.1

The Chain interface only retrieves the constituents - it does not have the ability to retrieve prices for each constituent. You will have to do something like this:

var chain = "0#FGBL:";
var response = Chain.Definition(chain).GetStream().Streaming(false);
response.Open();

var results = Pricing.Definition(response.Constituents).Fields("BID", "EXPIR_DATE").GetData();

foreach (var item in results.Data.Prices)
   Console.WriteLine($"Quote for item: {item.Key}\n{item.Value.Fields("BID", "EXPIR_DATE")}");

ahs.png


ahs.png (7.5 KiB)
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.

Upvotes
119 6 6 17

Dear @nick.zincone


thank you for your answer.


Regards

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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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