question

Upvotes
Accepted
3 0 1 3

Eikon .net api: get index constituents

Hello,

I would like to retrieve the list of all constituents of a specific index (eg.NASDAQ 100 " .NDX") with the EIkon .net API (C#) to get the time series data of these constituents. Is this possible with the.net API? Unfortunately I haven't found any hint or advice how to do this or if it's even feasible.


Kind Regards,

Tom

eikoneikon-com-apic#
icon clock
10 |1500

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

Upvote
Accepted
38.1k 71 35 53

You can use IRealtimeService::GetChain(…) to get the constituents of a Realtime chain.

IChainRequest chainRequest = realtime.GetChain("0#.FTSE",true, constituents =>
{
    // Iterate through chain constituents
    foreach (var constituentRic in constituents)
    {
        // Your process on each constituent RIC goes here.
        Console.WriteLine("{0}", constituentRic);
    }
});

After that, you can use ITimeSeriesDataService to request the time series data for each RIC.

icon clock
10 |1500

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

Upvotes
3 0 1 3

Great, thank you!

icon clock
10 |1500

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

Click below to post an Idea Post Idea