how to configure QueryStartDate and QueryEndDate in TickHistoryTimeAndSalesExtractionRequest

Hello,
how to configure QueryStartDate and QueryEndDate in TickHistoryTimeAndSalesExtractionRequest to be in local datetime ? Because I think that the API consider QueryStartDate and QueryEndDate to be on GMT , all the time.
In my case, I am trying to get Auction Price Data from the Australian Market , for example ric IOF.AX :
I did this :
.put("Condition", new JSONOrderedObject()
.put("MessageTimeStampIn", "LocalExchangeTime")
.put("ApplyCorrectionsAndCancellations", true).put("ReportDateRangeType", "Range")
.
put("QueryStartDate", "12:00:00")
.put("QueryEndDate", "23:59:59")
The result is not correct
IOF.AX,Market Price,2017-08-29T09:02:13.369484903+10,Auction,4.5,1159
IOF.AX,Market Price,2017-08-29T09:04:19.884988294+10,Auction,4.5,2326
Why is not correct ? because 2017-08-29T09:02:13.369484903+10 ( GMT+ offset) means that this auction was sent 2017-08-28T23:02:13.369484903Z australian local time,however the australian market closes at 16:30:00!
Someone can help here ?
Thanks
Answers
-
When the "MessageTimeStampIn" is set to "LocalExchangeTime", as you did, the returned time stamp is represented in the local exchange time. In your example:
IOF.AX,Market Price,2017-08-29T09:02:13.369484903+10,Auction,4.5,1159
the acution was sent at 9:02 am of Aug 29 AEST time. "+10" representatives it's off set from GMT so the equivalent GMT time should be AEST time minus 10 hours as Aug 28 23:02.
If you change "MessageTimeStampIn" to "GmtUtc" and do the same extraction, you should get the same auction data with GMT time stamp as:
IOF.AX,Market Price,2017-08-28T23:02:13.369484903Z,Auction,4.5,1159
IOF.AX,Market Price,2017-08-28T23:04:19.884988294Z,Auction,4.5,23260 -
Hello Steven,
I need to precise a detail : My request is
.put("Condition", new JSONOrderedObject()
.put("MessageTimeStampIn", "LocalExchangeTime") .put("ApplyCorrectionsAndCancellations", true).put("ReportDateRangeType", "Range") .
put("QueryStartDate", "2017-08-28T12:00:00")
.put("QueryEndDate", "2017-08-28T23:59:59")
So when I get a response :
IOF.AX,Market Price,2017-08-29T09:02:13.369484903+10,Auction,4.5,1159
I suppose that there is something wrong : because I am asking for Auction of the local date 2017-08-28 but I am receiving an auction price, with local date , 2017-08-29.
I think this is an issue within the new version.
0 -
QueryStartDate and QueryEndDate should be in UTC time. MessageTimeStampIn is only for time-stamps on extracted data. So if your need auction of Aug 28 between 12:00 and 23:00 local time time, it is GMT 02:00-13:00 and should be:
.put("QueryStartDate", "2017-08-28T02:00:00.000")
.put("QueryEndDate", "2017-08-28T13:59:59.000")0 -
I see your point. I've already thought about this solution. But I see here a big regression between TRTH V1 and TRTH V2.
In the previous version, and for the auction , I didn't care about the market, or its timezone ! I create a request and I set this parameter req.setRequestInGMT(false ) for Auction.
In TRTH V2, this parameter has disappeared , leaving us, the client of Reuters, in big trouble because in our migration project expected the same quality from the V2, and which is not.
I guess that Reutrers dev team should take care of this issue: adding a requestInGMT parameter.
0 -
Hi, the subject related to my question is a use case that it has not been considered by TRTH V2. However, it is under investigation now by the Reuters teams. So, you can keep this question open until a fix is made or I can close it as not answered .
B.R.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 688 Datastream
- 1.4K DSS
- 624 Eikon COM
- 5.2K Eikon Data APIs
- 11 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 255 ETA
- 557 WebSocket API
- 38 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 276 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 692 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 105 UPA
- 194 TREP Infrastructure
- 229 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 10 Wealth Management Web Services
- 91 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛