Beta Expression in R via Datastream API

Hi,

I am trying to run an expression in r using the DatasteamDSWS2R package. I have be able to get a more simple expression working, but for what ever reason the formula supplied is not generating any data.

mydsws$timeSeriesRequest(
instrument = 'A:BHPX'
expression = "REGB#(PCH#(CFM#(ASXAORD,VAL),1M),PCH#(CFM(XXXX,VAL),1M),60M)",
startDate = "-0D",
endDate = "-0D",
frequency = "D")

I have tried saving the expression and call via timeseries and snapshot requests and get varying messages.

1697519597441.png

I have tested in excel and the value should be 0.8362 but from some reason it is not pulling the figure. Can anyone see what I am doing wrong?

Thanks
Adam

Best Answer

  • @ics-applicationsupport

    Thank you for reaching out to us.

    The code should be like this:

    mydsws$timeSeriesRequest(
         instrument = 'A:BHPX',
         expression = "REGB#(PCH#(CFM#(ASXAORD,VAL),1M),PCH#(CFM#(XXXX,VAL),1M),60M)",
         startDate = "-0D",
         endDate = "-0D",
         frequency = "M")

    1697523486021.png