question

Upvotes
Accepted
3 2 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 512.0 KiB each and 1.0 MiB total.

Upvote
Accepted
78.9k 250 52 74

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 512.0 KiB each and 1.0 MiB total.

Upvotes
3 2 1 3

Great, thank you!

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.