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

Best Answer

  • Jirapongse
    Jirapongse admin
    Answer ✓

    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.

Answers