Hi,
I don't understand why I get a 202 error with the following code:
body = json.dumps({
"ExtractionRequest": {
"@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.TickHistoryTimeAndSalesExtractionRequest",
"ContentFieldNames": list_trade_fields,
"IdentifierList": {
"@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.InstrumentIdentifierList",
"InstrumentIdentifiers": [
{ "Identifier": "SOLB.TG", "IdentifierType": "Ric" }
],
"ValidationOptions": {
"AllowHistoricalInstruments": True,
"AllowInactiveInstruments": True,
"AllowOpenAccessInstruments": False
},
"UseUserPreferencesForValidationOptions": False
},
"Condition": {
"ReportDateRangeType" : "Range",
"QueryStartDate": "2019-08-01T00:00:00.000Z",
"QueryEndDate": "2019-08-01T10:00:00.000Z"
}
}
})
url_post = "https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/ExtractRaw"
header_post = {"Prefer": "respond-async, wait=30",
"Content-Type": "application/json",
"Authorization":myToken}
resp = requests.post(url_post,body, headers=header_post)
thank you for your help,