question

Upvotes
Accepted

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")

datastream-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Upvotes
Accepted
47.2k 109 44 60

@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")
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.