Hello @anass.yazane.1 ,
If I understand your question correctly, I can suggest a quick way, that may not be necessarily the best way, RDP API, direct call, rather then RDP API Library:
GET https://{{RDP_HOST}}/discovery/search/v1/metadata/views/FixedIncomeInstruments
Should result in all available metadata for FixedIncomeInstruments as json:
However, if this is what you are looking for, you would not usually run this request often, programmatically, you likely would expect to run it once, to pinpoint your requirements within the available properties. If you only need this information once, to properly design your integration, you may just collect this info via API Playground -> Search -> Metadata/Views as well.
Hope this information helps.
Hi @anass.yazane.1 ,
I addition to what Zoya already suggested, you can take advantage of Navigators which groups values by showing value name and the count. Here is an example of using Navigator on AssetCategoryName along with the output.
response = rdp.Search.search( view = rdp.SearchViews.FixedIncomeInstruments, navigators = "AssetCategoryName",)response.data.raw["Navigators"]["AssetCategoryName"]
However, it should be noted, that you can do this only for Navigable properties. Whether the property is Navigable or not you can find in RDP API Library (as suggested by Zoya) or from the output of rdp.get_search_metadata(view=SearchViews.FixedIncomeInstruments). For the non-Navigable items, you may find this article useful which simplifies the challenges of discovering financial properties and the values when programmatically building Search.