HistoricalPricing.GetSummaries reponse IsSuccess returns "true" even if there is no data due to a...

... permission error.

Connecting via RDP platform Session.

Modified example 2.0.0:

var response = HistoricalPricing.GetSummaries(new HistoricalPricingSummaries.Params().Universe("DTEGn.DE")
.WithInterval(HistoricalPricingSummaries.Interval.P1D)
.WithCount(10000));

if (!response.IsSuccess)
throw new Exception($"GetSummaries error: {response.Status.ToString()}");

IsSucces is "true" but raw data shows:

{[

{

"universe": {

"ric": "DTEGn.DE"

},

"status": {

"code": "TS.Interday.UserNotPermission.70112",

"message": "User does not have permission for this universe."

}

}

]}


Best Answer

  • nick.zincone
    nick.zincone admin
    Answer ✓

    Hi @martin.grunwald,

    Based on the many tests that I have performed against multiple data services, the general theme is that if there are issues with the universe/instrument specification, such as invalid RIC or not permissioned RIC, a valid HTTP code will be returned but will carry some sort of status/error information within the body. Invalid HTTP codes returned typically happen when invalid parameters or missing required parameters are provided.

    While the Historical services presently only provides one instrument as input, many others provide multiple instruments. I believe the rationale is that if you request for a service with 30 instruments, one of which is invalid, your whole request should not be rejected. Instead, the service will provide you with valid data for 29 of them but let you know the reason why the 30th failed. The Historical service likely wants to stay consistent with this approach, especially if it changes sometime in the future to allow multiple instruments as input.



Answers