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?

Best Answer

Answers

  • @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?

  • 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

  • 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)