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 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
38.1k 69 35 53

@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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea