Upgrade from Eikon -> Workspace. Learn about programming differences.

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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 1 0 1

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-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-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.

1 Answer

· Write an Answer
Upvotes
Accepted
78.2k 246 52 72

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