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)

hi @florent.pochon ,

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?
If so please can you click the 'Accept' text next to the appropriate reply? This will guide all community members who have a similar question or could you provide the information required for further investigation, please?

Thanks,
AHS

Hi @florent.pochon,

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.


Thanks,

AHS

1 Answer

· Write an Answer
Upvote
Accepted
79.2k 251 52 74

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