question

Upvotes
Accepted
1 0 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 5.0 MiB each and 10.0 MiB total.

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

Click below to post an Idea Post Idea