Access rights for DSS - Time Series requests

Philipp
Philipp Contributor

When I execute the DSS2TimeSericesClient Java example. I'm getting the following message. Is it due to missing permissions?

Session Token (expires in 24 hours):

[...]

Press "ENTER" to continue...
tsExtractJSONObject.toString()v2:{"ExtractionRequest":{"@odata.type":"#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.TimeSeriesExtractionRequest","ContentFieldNames":["RIC","File Code","Trade Date","Bid Price","Currency Code","Exchange Code","High Price","Low Price","Open Price","Volume","Close Price","VWAP Price","Alternate Close Price","Split Factor","Asset Type","Quote ID","Bid Yield","Universal Close Price"],"IdentifierList":{"@odata.type":"#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.InstrumentIdentifierList","InstrumentIdentifiers":[{"IdentifierType":"Ric","Identifier":"IBM.N"}],"ValidationOptions":null,"UseUserPreferencesForValidationOptions":false},"Condition":{"LastPriceOnly":false,"StartDate":"2015-10-28T00:00:00.000Z","EndDate":"2015-11-04T00:00:00.000Z","LookBackPeriod":"EOD-4M"}}}
Response Code : 403
Response Code is not 202 and not 200. The request was not accepted, cannot proceed!!

Best Answer

  • @Philipp,

    The tutorials and queries in the Postman collection made for the DSS REST API will not necessarily work with an account created for TRTH REST API access, because the permissioning is different. To be more specific, retrieving your authentication token will work fine, but most extraction requests will not work. That is why the Java sample you mention in this query does not work for you.

    There is a series of tutorials with sample code made specifically for the TRTH API, you will find them here. There is also a Postman collection available for download here. There is no Java sample code yet for TRTH data, but it should be easy to program in Java the requests we deliver in the Postman collection (here the DSS Java samples can come in handy, as they show how to retrieve a token and build requests). Bear in mind that the order of the elements inside the request body must be maintained, that is why the DSS Java samples use JSONOrderedObject.

Answers