Hello , How to get S&P500 all stock daily weight by eikon with python API ? thank you.

Hello , How to get S&P500 all stock historical daily data and weight by eikon with python API ? thank you.

Best Answer

  • chavalit-jintamalit
    Answer ✓

    Hi @ethan.hayashi

    You can follow this code to get S&P500 RIC list and get historical data:

    (Because the get_timeseries accept up to 300 RIC so I have to split the list into 2 lists before calling the API)

    image

    As for weight, I do not understand the content you are trying to retrieve, please clarify or show me the sample data on the Eikon Desktop. I will try to see if it is accessible from API and will share the result.

    Thanks.

Answers