For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 0 0

R doesnt recognize datetime.now on get_timeseries

Im testing the eikon kibrary in r and get_timeseries returns an error because R doesnt recognize datetime.now. I couldnt find a package with this function. Does anyone knows how to fix it?

message error:

df =get_timeseries (as.list ('MSFT.O'),
+                     "2016-01-04",
+                     "2016-01-06",
+                     debug = FALSE)
Error in datetime.now(tzlocal()) : could not find function "datetime.now"
eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpython
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 71 35 53

@marcelo.hiroki

Refer to the eikonapir page, the usage of get_timeseries is:

get_timeseries(rics, fields = "*", start_date = NULL,
  end_date = NULL, interval = "daily", normalize = FALSE,
  count = NULL, calendar = NULL, corax = NULL, raw_output = FALSE,
  debug = FALSE)

The second parameter is fields, not date, and the date format is "2016-01-04T00:00:00". Therefore, the working code is:



1575255851652.png (34.7 KiB)
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