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

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

@marcelo.hiroki

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 appropriate 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

Upvotes
Accepted
79.2k 251 52 74

@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 512.0 KiB each and 1.0 MiB total.

Upvotes
22.1k 59 14 21

@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 512.0 KiB each and 1.0 MiB total.

Upvotes
1 1 0 1

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 512.0 KiB each and 1.0 MiB total.

Upvotes
22.1k 59 14 21

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