Latest Revenue available prior to specific date - DSWS API

Hi,

I'm using the .net API for DSWS

I want to retrieve the last available value and date from a time series prior to a specific date.

For example:


DSDataRequest reqDSRequest = new DSDataRequest()
           {
Instrument = new DSInstrument("VOD"),         DataTypes = new DSDataTypes("WC07240"), Date = ??? };

Is this possible ?

Thanks,

Fergal

Best Answer

  • @fergal.twomey

    Thanks for reaching out to us.

    You can try the following code.

     var request = new DSGetDataRequest()
    {
    TokenValue = tokenValue,
    DataRequest = new DSDataRequest()
    {
    Instrument = new DSInstrument() { Value = "VOD" },
    DataTypes = new[] { new DSDataType() { Value = "WC07240" } } ,
    Date = new DSDate()
    {
    Kind = DSDateKind.TimeSeries,
    Start = DSDateNames.BDATE.ToString(),
    End = DSDateNames.LATESTDATE.ToString(),
    Frequency = DSDateFrequencyNames.Y.ToString()
    }
    }
    };

    It gets yearly time-series data from BDATE to LATESTDATE.

    For more information, please refer to Reference for DSService.svc - DSDataRequest.

    I hope this will help.

Answers

  • Thank you very much for response.

    I wonder why when I add SECD and ISIN to the data types, the response is "Invalid Code or expression entered" for the symbol "VOD" even though the same symbol in same response for WC07240 is correctly returning values


    1673611114884.png