How to change Timestamp
How do i change the
"Condition": {
"MessageTimeStampIn": "GmtUtc", to UTC+9 , and how do i show the timestamp to be Tokyo/Osaka?
Best Answer
-
Posting the answer from the case for future reference:
All currency pairs and currency update in GMT/UTC only. In Tick History Report, the output settings can only be set to “Gmt/Utc” or “LocalExchangeTime”. For currencies / forex, local “Exchange” time is also Gmt/Utc as source is from Refinitv.
0
Answers
-
If the question about LSEG Tick History, According to the documentation, MessageTimeStampIn can accept either GmtUtc or LocalExchangeTime.
Hope this helps.
Best regards,
Haykaz
0 -
I understand this, however I am not certain what the LocalExhangeTime would be for each currency pair? for some I would guess JPY would be TOKYO, but what if I chose AUDZAR? what is the LocalExchageTime for this pair, for example? So, it would be better for me, if i could choose my timezone reference.
0 -
I don't think it is possible to add timezone reference, my colleagues (@Jirapongse I would appreciate your input here) may correct if I am wrong. As for the LocalExhangeTime for different pairs, I would advice raising a content query via my.refinitiv.com.
Best regards,
Haykaz
0 -
I have tried
"Condition": {
"MessageTimeStampIn": "LocalExchangeTime", ....the Date-Time column is still of the form, ISO 8601, "YYYY-MM-DDTHH:MM:SS.sssZ". I do not see any difference to using GmtUtc. Please advise as to how i can obtain UTC+9 for example, WITHOUT changing the timestamp after the extraction
0 -
Hi @jolin.majmin ,
Please add "DateRangeTimeZone": "Local Exchange Time Zone" into your conditions, that should return in local time zone:
"conditions": {
"MessageTimeStampIn": "LocalExchangeTime",
"DateRangeTimeZone": "Local Exchange Time Zone",
"ReportDateRangeType": "Range"
}Best regards,
Haykaz
0 -
I have tried this. Unfortunately, it yields no different values to using "GmtUtc"
0 -
Hi @jolin.majmin ,
Please also add "Trade - Exchange Time" to the ContentFieldNames and would you mind posting your code here, so I investigate further in case of further questions?
Bes regards,
Haykaz
0 -
requestUrl='https://selectapi.datascope.refinitiv.com/RestApi/v1/Extractions/ExtractRaw'
requestHeaders={"Prefer":"respond-async","Content-Type":"application/json","Authorization": "token " + token}
requestBody={
"ExtractionRequest": {
"@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.TickHistoryIntradaySummariesExtractionRequest",
"ContentFieldNames": ["Close Ask","Close Bid","High Ask","High Bid","Low Ask","Low Bid","No. Asks","No. Bids",
"Open Ask","Open Bid", "Trade - Exchange Time"],
"IdentifierList": {
"@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.InstrumentIdentifierList",
"InstrumentIdentifiers": [{"Identifier": ticker1,"IdentifierType": "Ric"},
#{"Identifier": ticker2,"IdentifierType": "Ric"}
],
"UseUserPreferencesForValidationOptions": "false"
},
"Condition": {
"MessageTimeStampIn": "LocalExchangeTime", #"GmtUtc",
"DateRangeTimeZone": "Local Exchange Time Zone",
"ReportDateRangeType": "Range",
"QueryStartDate":QueryStartDate ,
"QueryEndDate": QueryEndDate,
"SummaryInterval": "OneMinute",
"TimebarPersistence": "false",
"DisplaySourceRIC": "true"
}
}
}
r2 = requests.post(requestUrl, json=requestBody,headers=requestHeaders)
#Display the HTTP status of the response
#Initial response status (after approximately 30 seconds wait) is usually 202
status_code = r2.status_code
print ("HTTP status of the response: " + str(status_code))
if status_code == 200 :
r2Json = json.loads(r2.text.encode('ascii', 'ignore'))
jobId = r2Json["JobId"]
print ('\njobId: ' + jobId + '\n')
notes = r2Json["Notes"]
print ('Extrraction notes:\n' + notes[0])0 -
if i add "Trade - Exchange Time" as suggested, there is an error. You suggestion does not work.
HTTP status of the response: 400
0 -
Hi @jolin.majmin ,
Thanks for sharing the code, indeed if you are using TickHistoryIntradaySummariesExtractionRequest "Trade - Exchange Time" will not be available. I have checked the available fields and didn't seem to find an equivalent for it. I have created a content query (case id: 13483218) on your behalf and the team may better assist you with your question.
Best regards,
Haykaz
0
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛