question

Upvotes
Accepted
1 0 0 1

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

sectors
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.

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

1 Answer

· Write an Answer
Upvote
Accepted
80k 257 52 75

@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.

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.