question

Upvotes
Accepted
1 0 1 1

How to get the category of an asset?

screen-shot-2021-09-06-at-142734.png

When searching an asset using datastream, there is a category column on the left to narrow down the search result. My question is: given a specific asset, how can I get its category? In other words, is there a datastream datatype for "category"? I know there is a "TYPE" datatype but they are still a little bit different.

datastream-apidsws-apidatastreamdata-type
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
1.4k 6 2 2

Hi @wangh9 ,


Have you had a look at the Data Type search? There you can find fields for any asset type.

E.g.:


df  = ds.get_data(tickers='613XGU',
                  kind=0,
                  fields=["TYPE"])

Returns 'BD '


df = ds.get_data(tickers = "RMCPANNL", # be careful not to put spaces in between elements here, or else these spaces will be included in column names.
                 fields = ["TYPE"],
                 kind=0)


Returns 'EC '


These are described in the 'TYPE' data definition:


1630951497905.png



Is this satisfactory? It's not exactly like the Datastream Navigator Categories...


1630951497905.png (78.1 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea