How to find the name of a list of indexes via the ek.get_data() method?

Hi Team,

Hope all is well.

Client is willing to find the name of a list of indexes via the ek.get_data() method but does not find the right field (parameter) in the method.

For example, if he tries with '.SPXESUN', via ek.get_data('.SPXESUN', 'TR.IndexName'), he could not retrieve the right name, which is 'S&P 500 ESG INDEX USD NTR').

Moreover, where can the Client find all the available fields to be requested by the ek.get_data() method?

May you help further on this?

Thank you.

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    @VyaJunaine.Gutierrez

    Please try the TR.InstrumentDescription field

    df, err = ek.get_data('.SPXESUN', 'TR.InstrumentDescription')

    1633662817200.png

    You can find all the available fields to be requested by the ek.get_data() method by using the Data Item Browser tool.


Answers