Client ID: 9013472
Please let us know if the timestamp in result is local or UTC for the response First Date and Last Date.
I provide the code below:
RESTURL = https://selectapi.datascope.refinitiv.com/RestApi/v1/
BULKSEARCHURL = RESTURL + "Search/HistoricalBulkSearch"
headers = {
'Authorization': "Token " + _token,
'X-Client-Session-Id': _sessionid,
'Prefer': 'respond-async',
'Content-Type': 'application/json; odata=minimalmetadata'
}
content = json.dumps({
'Request': {
'Identifiers': identifier,
'Range': {
'Start': start,
'End': end
},
'ResultsBy': 'Ric'}
})
toLog("Validating RICs...")
resp = requests.post(BULKSEARCHURL, data = content, headers = headers)
Result:
Results {
Identifier: "HUH1V.HE"
IdentifierType: Ric
Key: "VjF8MHgzMDAwMDAwMDAwMDAwMDAwfDB4MzAwMDAwMDAwMDAwMDAwMHx8fHx8fHxIVUgxVi5IRXw"
Description: "Historical Instrument"
DomainCode: "6"
FirstDate {
seconds: 987465600 //2001-04-16 20:00:00.000
}
LastDate {
seconds: 1647907200 //2022-03-21 20:00:00.000
}
}
Also, Could you just let me know how to add the option to define response results to be GMT or not for the API request?
Is there a way to add it into the body.