How to set endDate as latest value in R

In the code below, is there any way to set endDate as latest value instead of as 0Q?

mydsws$timeSeriesListRequest(instrument = "LFTSE100", expression = "PCH#(XXXX,3M)", startDate = "-30Q", endDate = "-0Q", frequency = "Q")

Tagged:

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    @lucia.kazarian_avakian

    The endDate could be LATESTDATE, as shown below.

    mydsws$timeSeriesListRequest(instrument = "LFTSE100", 
                                 expression = "PCH#(XXXX,3M)",
                                 startDate = "-30Q", 
                                 endDate = "LATESTDATE", 
                                 frequency = "Q")