May I know where to download the API request body example for each DSS/RTH template?

May I know where to download the API request body example(like a form just filling those field values) for each DSS/RTH template?
e.g., for the TimeAndSales template, the request body can be:

request_body = {
"ExtractionRequest": {
"@odata.type":
"#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.TickHistoryTimeAndSalesExtractionRequest",
"ContentFieldNames": [
"Quote - Bid Price",
"Quote - Bid Size",
"Quote - Ask Price",
"Quote - Ask Size",
"Quote - Mid Price",
"Quote - Volume",
"Trade - Bid Price",
"Trade - Bid Size",
"Trade - Ask Price",
"Trade - Ask Size",
"Trade - Price",
"Trade - Mid Price",
"Trade - Volume",
"Trade - Exchange/Contributor ID",
"Quote - Exchange/Contributor ID",
"Trade - Turnover",
"Quote - Buyer ID",
"Trade - Buyer ID",
"Quote - Seller ID",
"Trade - Seller ID",
"Quote - Number of Sellers",
"Quote - Number of Buyers",
"Trade - Open Interest"
],
"IdentifierList": {
"@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.InstrumentIdentifierList",
"InstrumentIdentifiers": ric_list,
"UseUserPreferencesForValidationOptions": "false"
},
"Condition": {
"MessageTimeStampIn": "GmtUtc",
"ApplyCorrectionsAndCancellations": "false",
"ReportDateRangeType": "Range",
"QueryStartDate": start_day_str,
"QueryEndDate": end_day_str,
"TimeRangeMode": "Inclusive",
"DisplaySourceRIC": "true"
}
}
}

Best Answer

  • Jirapongse
    Answer ✓

    @Frederic

    You can use the REST API Reference Tree.

    1655888688275.png

    Select ExtractRaw or ExtracWithNotes in the Extractions -> On Deman Extraction section. Then, select the report template in the ExtractionRequest parameter. Next, fill in the parameters. Finally, select JSON Model to see the request in JSON format.

    1655888923760.png