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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 0 0

HTTP Error on get_data

does anyone received the message "

Error in print.default("HTTP Error, code= ", response$status_code, sep = "") :

invalid 'digits' argument" using get_data in R?

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.

Upvotes
Accepted
38.1k 69 35 53

@marcelo.hiroki

I have tested with R and the code works fine.

You may need to set debug to TRUE in order to verify the retrieved response.


1575000371916.png (58.4 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.

Upvotes
13k 32 12 18

@marcelo.hiroki, Can you please post your complete get_data API call. Are you able to replicate the issue with a supported Python library example?

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.

Upvotes
1 0 0 0

hi, thaks for your help.

library("eikonapir")


df<-get_data(as.list ('GOOG.O','FB.O'),
+              list ( 'TR.PriceClose'),debug = FALSE)
Error in print.default("HTTP Error, code= ", response$status_code, sep = "") : 
  invalid 'digits' argument

regarding python, no, we dont use python here. It needs to be in R

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.

Upvotes
13k 32 12 18

R is not an officially supported packages, so I won't be able to help with it. As far as the data call goes, it works fine. Here is the call result in Python:

>>> ek.get_data(['GOOG.O','FB.O'], fields=['TR.PriceClose'])
(  Instrument  Price Close
0     GOOG.O      1303.05
1       FB.O       197.51, None)
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