what is the correct way to link between ReportTemplateTypes and ExtractionRequests derived classes ?

Hi
I tried to create some type of drill down query system for DSS.
Thank you for publishing metadata as XSD, that helps me greatly.
However, I had some trouble about to get ExtractionRequest derived class by ReportTemplateTypes enum name such as DetailEstimateFootNotes and CompanyEstimatesFootnotes.
I would like to know the correct way to link between them.
Below is my struggling:
In many cases, I can get correct ExtractionRequest derived class by concatenating ReportTemplateTypes name and 'ExtractionRequest'. For example 'FundAllocation' + 'ExtractionRequest' => FundAllocationExtractionRequest.
However I can't get 'DetailEstimateFootNotes' + 'ExtractionRequest' class. It seems EstimatesFootnotesDetailExtractionRequest is the correct one.
I also found that each ExtractionRequest derived classes have an annotation with Term=Org.OData.Core.V1.Description. It contains Reference Data such as 'FundAllocation'. Therefore I think it can be linked from ExtractionRequest derived class to ReportTemplateTypes and vice versa.
However, for example TickHistoryRawExtractionRequest has 'Time Bar' and there is no 'Time Bar' in the Enum definition. It seems TickHistoryRaw is the correct one.
---------------------------------
Adding an example (9 May, 2018)
For example,
In Metadata (XSD) on Extractions, I can find the complex type
SingleHistoricalPriceExtractionRequest, however, I can't find
corresponding ReportTemplateTypes enum members.
Therefore I can't
get the list of ContentFieldNames by invoking GetValidContentFieldTypes
API because there is no clue of the ReportTemplateTypes name.
Indeed, Extractions -> OnDemandExtractions-> ExtractWEIthNotes
And select SingleHistoricalPriceExtractionRequest for Parameter Name = ExtractionRequest on Features & Behaviors pane.
The ContentFileldNames has blank FieldNames. Therefore we can't find any valid ContentFieldNames.
That is the same thing caused by lacking imcomplete metadata, I should suppose to.
-------------------------------------
Akio
Best Answer
-
Have you had a chance to Review
?
if you expand Extractions -> OnDemandExtractions-> ExtractRaw,
The drop-down list for ExtractionRequest will contain all the possible values of ExtractionRequest.
Once you select the preferred ExtractionRequest type from the drop-down list, the reference will reflect all the available and required fields for this specific request type.
Is this reference information what you are looking for?
0
Answers
-
Hi
I took them from XSD linked from Metadata under the name of Extractions on
0 -
At this time, I have no suitable answers. Only Zoya gave me some comment, howerver as I commented it, this was not about XSD.
0 -
I understand that ReportTemplateTypes and ExtractionRequest are defined for different extraction request type. The ReportTemplateTypes is used for Schedule Extraction, while the ExtractionRequest is used for On-Demand Extraction. As both extraction types should provide similar data, ReportTemplateTypes and ExtractionRequest might be linked, but they should not be converted directly.
If you want to get ContentFieldNames by ExtractionRequest, you can use the GetValidContentFieldTypesForClass endpoint instead.
Hope this helps.
Below is the example.
Request:
GET https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/GetValidContentFieldTypesForClass(ReportTemplateOrExtractRequestClassName='SingleHistoricalPriceExtractionRequest')
Response:
{
"@odata.context": "https://hosted.datascopeapi.reuters.com/RestApi/v1/$metadata#ContentFieldTypes",
"value": [
{
"Code": "TPX.7 Day Compound Yield",
"Name": "7 Day Compound Yield",
"Description": "Instrument's calculated 7-day yield that assumes coupon payments are invested at the current market interest rate at the time of receipt and held until maturity",
"FormatType": "Number",
"FieldGroup": " "
},
{
"Code": "TPX.7 Day Yield",
"Name": "7 Day Yield",
"Description": "Instrument's calculated 7-day yield, including the day on which the figure is reported, as supplied by NASDAQ",
"FormatType": "Number",
"FieldGroup": " "
},0 -
Hello again @akio.tajima,
Thanks for the clarification, now we understand your question better, and I think the answer is that there is no guaranteed direct correspondence between on-demand and template-scheduled requests. Template-based request was designed to mimic GUI-driven request functionality. On-demand was designed separately, and the intention was quick API-based requesting and testing.
Often, there is the same request for on demand and template-based way of extraction, but not always.
Agree with @veerapath.rungruengrayubkul, for your use case GetValidContentFieldTypesForClass request appears to be the best way to find out the available fields for a request type.
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
- 690 Datastream
- 1.4K DSS
- 629 Eikon COM
- 5.2K Eikon Data APIs
- 11 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 255 ETA
- 559 WebSocket API
- 39 FX Venues
- 15 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 25 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 280 Open PermID
- 45 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 23 RDMS
- 2K Refinitiv Data Platform
- 721 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
- 106 UPA
- 194 TREP Infrastructure
- 229 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 95 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛