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.

hi @lucia.kazarian_avakian ,

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?
If so please can you click the 'Accept' text next to the appropriate reply? This will guide all community members who have a similar question.

Thanks,
AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,
AHS

1 Answer

· Write an Answer
Upvotes
Accepted
79.2k 251 52 74

@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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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