Sector of equity list

I cannot download sectors of equity list using the API (but I can do it with the xls request) using either index list or list of stocks... may you indicate how this can be done ?

item_list=ds.get_data(tickers=mylist+"|L",fields =['NAME'], kind=0) => fields are NA

Thanks

FP

Tagged:

Best Answer

  • Jirapongse
    Jirapongse admin
    Answer ✓

    @florent.pochon

    The code works fine on my machine.

    mylist = 'LSNGPORI'
    ds.get_data(tickers=mylist+"|L",fields =['INDM2'], kind=0)

    The output is:

    InstrumentDatatypeValueCurrencyDates026493DINDM2Real EstateS$2022-03-281260243INDM2Real EstateS$2022-03-2822602ENINDM2Real EstateS$2022-03-283921754INDM2Real EstateS$2022-03-28426907PINDM2Consumer DiscretionS$2022-03-28


    Please share the instrument name in the mylist variable that you are using.

Answers