I am trying to run the following API query in python but get the error -
"error":{"message":"Validation Error:\r\n\r\nCannot run a normal extraction for a \"Tick History Raw\" template type. You must use ExtractRaw instead."}
Can anyone help clarify where I am going wrong? I am able to run a query using - #ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.HistoricalReferenceExtractionRequest, so not sure why TickHistoryRawExtractionRequest doesnt work?
payload = {
"ExtractionRequest": {
"@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.TickHistoryRawExtractionRequest",
"ContentFieldNames": [
"RIC",
"CUSIP",
"ISIN",
"SEDOL",
"Change Date"
],
"IdentifierList": {
"@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.InstrumentIdentifierList",
"InstrumentIdentifiers": [
{ "Identifier": "IBM.N", "IdentifierType": "Ric" }
]
},
"Condition": {
"MessageTimeStampIn": "GmtUtc",
"ReportDateRangeType": "Range",
"QueryStartDate": "2019-10-07T12:00:00.000Z",
"QueryEndDate": "2019-10-09T12:10:00.000Z",
"ExtractBy": "Ric",
"SortBy": "SingleByRic",
"DomainCode": "MarketPrice",
"Fids": "25,22",
"DisplaySourceRIC": True
}
}
}