question

Upvotes
Accepted
39 3 2 10

TickHistory python - list of available fields

Hi,


I am trying to use the Tick History api via python to download tick data for various instruments across Bonds & FX. How can I get a list of all possible fields/ attributes for a ticker?


For example- for the German 10y Bund futures (FGBLc1) - I want to get indicative volumes & prices (top of the book)- Is that possible with tickHistory api?

For reference, I am using the Python code examples in https://developers.refinitiv.com/en/api-catalog/refinitiv-tick-history/refinitiv-tick-history-rth-rest-api/download

pythontrth-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
78.8k 250 52 74

@sumit

Thanks for reaching out to us.

You can get a list of fields available in each Refinitiv Tick History template by using the HTTP GET method. For example, you can get a list of fields in the TickHistoryTimeAndSales report template by using the following endpoint.

https://selectapi.datascope.refinitiv.com/RestApi/v1/Extractions/GetValidContentFieldTypes(ReportTemplateType=DataScope.Select.Api.Extractions.ReportTemplates.ReportTemplateTypes'TickHistoryTimeAndSales')

The output looks like this:

1672281226765.png

For more information, please refer to the Refinitiv Tick History (RTH) - REST API tutorial.

Otherwise, you can refer to the Data Dictionary - Refinitiv Tick History Custom Reporting document that identifies the data available from Tick History custom reporting. Fields are organized alphabetically by report template.

I hope that this information is of help


1672281226765.png (82.7 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.

hi, where can I post this GET request?


Thanks

Hi, I am running the following code. But getting a 404

my requestUrl to get the field names is:-

requestUrl = "https://selectapi.datascope.refinitiv.com/RestApi/v1/Extractions/GetValidContentFieldTypes(ReportTemplateType=DataScope.Select.Api.Extractions.ReportTemplates.ReportTemplateTypes'TickHistoryTimeAndSales')"

1672341845537.png

1672341845537.png (276.7 KiB)

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.