Hi, on the DSS REST API, how do you search for indices from an Exchange (example: NAS) that belon...

Best Answer
-
Hello @austin.fan01 ,
My first and probably best suggestion will be to work with Refinitiv content experts to pinpoint the way to do this search via Datascope GUI. The approach that you come up with we will try to reproduce via DSS REST API.
Additionally, I would like to discuss a potential approach that I have researched:
The indices for NAS exchange can be identified, for example, via HistoricalCriteriaSearch
{{protocol}}{{host}}{{api}}Search/HistoricalCriteriaSearch
{
"Request": {
"RicPattern": null,
"BondTypeCodes": null,
"ContributorIds": null,
"CountryCodes": null,
"CurrencyCodes": null,
"ExchangeCodes": ["43"],
"FutureMonthCodes": null,
"InstrumentTypeCodes": ["22","118"],
"OptionMonthCodes": null,
"OptionTypeCodes": null,
"CouponRate": null,
"StrikePrice": null,
"ExpiryDate": null,
"MaturityDate": null,
"Range": {
"Start": "2022-11-07T00:00:00.000Z",
"End": "2022-11-08T00:00:00.000Z"
}
}
}There is no provision to filter on request either on GICs or on TRBC codes.
If your indices are equity indices, you can also do:
{{protocol}}{{host}}{{api}}Search/EquitySearch
{
"SearchRequest": {
"AssetStatus": "Active",
"AssetCategoryCodes": ["EQI"],
"SubTypeCodes": null,
"CurrencyCodes": null,
"CompanyName": null,
"Description": null,
"DomicileCodes": null,
"ExchangeCodes": [ "NAS"],
"FairValueIndicator": null,
"FileCodes": null,
"GicsCodes": null,
"OrgId": null,
"Ticker": null,
"Identifier": null,
"IdentifierType": null,
"PreferredIdentifierType": null
}
}However, from my testing, GicsCodes filter will not be effective for indices- because for indices this content is not populated.
In step 2, Via TermsandConditionsRequest I request TRBC and GICS information on the indices RICs obtained from step 1:
{{protocol}}{{host}}{{api}}Extractions/ExtractWithNotes
{
"ExtractionRequest": {
"@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.TermsAndConditionsExtractionRequest",
"ContentFieldNames": [
"RIC", "CUSIP", "ISIN", "SEDOL", "Issuer OrgID", "Currency Code","TRBC Business Sector Code","GICS Industry Code"
],
"IdentifierList": {
"@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.InstrumentIdentifierList",
"InstrumentIdentifiers": [
{ "Identifier": ".BANKT", "IdentifierType": "Ric" },
{ "Identifier": ".NQPL60LMEURN", "IdentifierType": "Ric" },
{ "Identifier": ".NQASPA5010JPYN", "IdentifierType": "Ric" },
{ "Identifier": ".NQASPA5010LM", "IdentifierType": "Ric" }
]
}
}
}Resulting in:
{
"@odata.context": "https://selectapi.datascope.refinitiv.com/RestApi/v1/$metadata#DataScope.Select.Api.Extractions.ExtractionRequests.ExtractionResult",
"Contents": [
{
"IdentifierType": "Ric",
"Identifier": ".BANKT",
"RIC": ".BANKT",
"CUSIP": null,
"ISIN": null,
"SEDOL": null,
"Issuer OrgID": "70344",
"Currency Code": "USD",
"TRBC Business Sector Code": "5510",
"GICS Industry Code": null
},
{
"IdentifierType": "Ric",
"Identifier": ".NQPL60LMEURN",
"RIC": ".NQPL60LMEURN",
"CUSIP": null,
"ISIN": null,
"SEDOL": null,
"Issuer OrgID": "70344",
"Currency Code": "EUR",
"TRBC Business Sector Code": "5510",
"GICS Industry Code": null
},
{
"IdentifierType": "Ric",
"Identifier": ".NQASPA5010JPYN",
"RIC": ".NQASPA5010JPYN",
"CUSIP": null,
"ISIN": null,
"SEDOL": null,
"Issuer OrgID": "70344",
"Currency Code": "JPY",
"TRBC Business Sector Code": "5510",
"GICS Industry Code": null
},
{
"IdentifierType": "Ric",
"Identifier": ".NQASPA5010LM",
"RIC": ".NQASPA5010LM",
"CUSIP": null,
"ISIN": null,
"SEDOL": null,
"Issuer OrgID": "70344",
"Currency Code": "USD",
"TRBC Business Sector Code": "5510",
"GICS Industry Code": null
}
],I.e. TRBCs appear to be populated, while GICS are not.
Therefore, if one is able to come up with the list of required TRBCs, in step 3, one should be able to further filter the result from step 2, not request, but result, for example, keeping indices where TRBC = 5510
This approach may allow to arrive at the results you are looking for, but by working out the search via GUI and emulating it via API, you can potentially come up with a better solution. Once you have the GUI-driven approach- let us know, and we will try to help to migrate it to DSS REST API.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 685 Datastream
- 1.4K DSS
- 615 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 252 ETA
- 556 WebSocket API
- 38 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 652 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 193 TREP Infrastructure
- 228 TRKD
- 917 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛