Hi, i have a python script which is below
partial_df1 = rd.discovery.search(view = rd.discovery.Views.COMMODITY_QUOTES, top=10000, filter = "\ SearchAllCategoryv2 eq 'Commodities'\ and RICLength lt 10 \ and RIC eq '0#*:'\ and RIC ne '*IV:*'\ and RIC ne '*-:*'\ and DTSubjectName ne 'forecast' \ and DTSubjectName ne 'foreacast' \ and DTSubjectName ne 'Forecst' \ and DTSubjectName ne 'forecasts' \ and (not(RCSUnderlyingProductGenealogy in ('U:8' 'U:B' 'U:C' 'U:I' 'U:Q' 'U:D7')))", select = "RIC,DTSubjectName,RCSUnderlyingProductLeaf,ExchangeName,DisplayType,AssetType,ExchangeName, RCSAssetClass")
i need to port this to api.refinitiv discovery API. i tried few options but getting error. please help in getting right parameters.
i tried below
POST -
https://api.refinitiv.com/discovery/search/v1/explore
{ "View": "COMMODITYQUOTES", "Filter": "SearchAllCategoryv2 eq 'Commodities'", "Select": "RIC,DTSubjectName,RCSUnderlyingProductLeaf,ExchangeName,DisplayType,AssetType,ExchangeName, RCSAssetClass", "Top": 20}
i tried
{ "View": "COMMODITY_QUOTES", "Filter": "SearchAllCategoryv2 eq 'Commodities'", "Select": "RIC,DTSubjectName,RCSUnderlyingProductLeaf,ExchangeName,DisplayType,AssetType,ExchangeName, RCSAssetClass", "Top": 20}