question

Upvotes
Accepted
1 1 1 1

R, DatastreamDSWS2R: How can I receive index time series data?

Hi,

I want to download index data via the DatastreamDSWS2R Package using the following Code, which is basically given at the package description on github, but I changed the instrument to "DAXINDEX".

The code only returns the instrument. Using other indices like MSCI World or Eurostoxx 50 gives the same result.

> mydsws$timeSeriesRequest(instrument = "DAXINDEX",
+                                     #expression = "PCH#(XXXX, RI)",
+                                     datatype = "P",
+                                     startDate = "-30D",
+                                     endDate = "-0D",
+                                     frequency = "D")
     DAXINDEX
>

Thank you very much,

best

Matthias

eikon-data-apidatastream-apidsws-apir
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.

Hello @matthias.bernhardt,

Thank you for your participation in the forum.

Is the reply below satisfactory in resolving your query?

If yes please click the 'Accept' text next to the reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your 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
1.1k 3 3 3

Hi @matthias.bernhardt ,

There are couple issues here:

  • Instrument DAXINDEX doesn't exist. There is however DAXINDX (DAX 30 PERFORMANCE) used in below example.
  • Datatype price for this index instrument is PI (Price Index). You can review instruments and data types in Datastream Navigator which you can log in using the link available here.
> myResult <-mydsws$timeSeriesRequest(instrument = "DAXINDX",
                          datatype = "PI",
                          startDate = "-30D",
                          endDate = "-0D",
                          frequency = "D")
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.