Request
Header:
'prefer' => 'respond-async', 'content-type' => 'application/json; odata=minimalmetadata', 'content-length' => 0,'authorization' => 'Token _cehY******'
Body:
{ "ExtractionRequest": { "@odata.type":"#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.TickHistoryTimeAndSalesExtractionRequest", "ContentFieldNames":[ "Trade - Price", "Trade - Volume" ], "IdentifierList": { "@odata.type":"#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.InstrumentIdentifierList", "InstrumentIdentifiers":[ { "Identifier":"VOD.L", "IdentifierType":"Ric" }, { "Identifier":"IBM.N", "IdentifierType":"Ric" } ], "ValidationOptions":null, "UseUserPreferencesForValidationOptions":false }, "Condition": { "MessageTimeStampIn":"GmtUtc", "ApplyCorrectionsAndCancellations":true, "ReportDateRangeType":"Range", "QueryStartDate":"2017-01-01T09:00:00.000", "QueryEndDate":"2017-01-01T10:00:00.000", "DisplaySourceRIC":false } } }
Response
Code: 202 Accepted
Header:
'x-app-id' => 'Custom.RestApi', 'cache-control' => 'no-cache', 'set-cookie' => 'DSSAPI-COOKIE=R2817038826; path=/', 'date' => 'Thu, 08 Jun 2017 19:19:54 GMT', 'status' => 'InProgress', 'client-ssl-cert-issuer' => '/C=US/O=Symantec Corporation/OU=Symantec Trust Network/CN=Symantec Class 3 Secure Server CA - G4', 'client-ssl-cipher' => 'RC4-SHA', 'client-peer' => '192.165.219.152:443', 'client-date' => 'Thu, 08 Jun 2017 19:19:54 GMT', 'client-ssl-warning' => 'Peer certificate not verified', 'x-request-execution-correlation-id' => '528c84b5-da5f-42ad-9610-77d741818a07', ‘pragma' => 'no-cache', 'server' => 'Microsoft-IIS/7.5', 'client-ssl-socket-class' => 'IO::Socket::SSL', ‘client-response-num' => 1, 'location' => 'https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/ExtractRawResult(ExtractionId=\'0x05bfd3812aab3026\')', 'progress' => '', 'content-length' => '0', 'x-app-version' => '11.0.492.64', 'client-ssl-cert-subject' => '/C=US/ST=New York/L=New York/O=Thomson Reuters/CN=hosted.datascopeapi.reuters.com', 'expires' => '-1'
This response just continuously loops. I left it for 2 hours yesterday with no difference.
Strangely, I ran the job about ten mins ago and it actually returned something different:
Code: 200 OK
This seems to be the correct response. I just re-ran now and back to the infinite loop. Any ideas why it does not return something every time?