question

Upvotes
Accepted
1 0 0 1

How to construct the JSON requestBody for the request: GetValidContentFieldTypes

tick-history-rest-api
icon clock
10 |1500

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

Upvotes
Accepted
426 2 4 4

Hi @Steven Painter,

GetValidContentFieldTypes is a GET request and there is no need for http body. For instance, to request valid fields for TIme and Sales, use the URL:

https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/GetValidContentFieldTypes(ReportTemplateType=ThomsonReuters.Dss.Api.Extractions.ReportTemplates.ReportTemplateTypes'TickHistoryTimeAndSales')

You still need to supply the Authorization header key just like all other TRTH requests.

Please take a look at the "REST API Tutorial 4: On Demand tick data extraction" in the TRTH REST Tutorial page

https://developers.refinitiv.com/en/api-catalog/refinitiv-tick-history/refinitiv-tick-history-rth-rest-api/tutorials#rest-api-tutorial-4-on-demand-tick-data-extraction

It has detail instructions of getting valid content fields.

icon clock
10 |1500

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

Upvotes
1 0 0 1

I’ve ensured my URL and headers are identical (except for the token) and I keep getting:

ValueError: _request failed: Response Error is 404

No HTTP resource was found that matches the request URI 'https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/GetValidContentFieldTypes(ReportTemplateType=ThomsonReuters.Dss.Api.Extractions.ReportTemplates.ReportTemplateTypes'TickHistoryTimeAndSales')'.

Am I perhaps not correctly permissioned?

icon clock
10 |1500

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

Upvotes
13.7k 26 8 12

@Steven Painter, I get the same error if I use an HTTP POST instead of an HTTP GET. Can you ensure you are using HTTP GET for this request ?

icon clock
10 |1500

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

Upvotes
1 0 0 1

Doh! Thanks.

icon clock
10 |1500

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

Click below to post an Idea Post Idea