question

Upvotes
Accepted
41 3 4 9

Provide previous day QueryStartDate and QueryEndDate in TickHistoryRawExtractionRequest Rest Api

I am using TickHistoryRawExtractionRequest Rest Api. In extraction request condition for QueryStartDate and QueryEndDate what does T12:00:00.000Z means ?

"QueryStartDate": "2021-09-02T12:00:00.000Z",

"QueryEndDate": "2021-09-02T12:10:00.000Z"

For example now i want to check and extract the previous whole day tick raw data so how to do that ? I am using Python coding and i always want to extract previous day(sysdate-1) whole data tick raw data as part of automated process...

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.

1 Answer

Upvotes
Accepted
13k 32 12 18

HI @rahul.deshmukh ,

The TRTH uses the ISO 8601 format for date. The numbers after T represent the time and Z at the end means it is UTC time zone.

yyyy-MM-ddTHH:mm:ss.SSSZ

UTC is the only timezone accepted in the queries. If you need data for another timezone - for.e.g. US markets, you will have to convert the local time to UTC before submitting to RTH.

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