For a deeper look into our DataScope Select REST API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
33 9 12 28

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"
        }
    }
}
dss-rest-apitrth-rest-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvotes
Accepted
76.7k 239 52 72

@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




1655888688275.png (70.1 KiB)
1655888923760.png (29.8 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.