Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Information after decimal point is lost on API calls in R. #70

Open
milosh-dev opened this issue Jun 23, 2022 · 0 comments
Open

Information after decimal point is lost on API calls in R. #70

milosh-dev opened this issue Jun 23, 2022 · 0 comments

Comments

@milosh-dev
Copy link

milosh-dev commented Jun 23, 2022

Quandl skips/rounds the decimal points on my API calls.

For example
futures = Quandl("CFTC/IC6_F_ALL_CR")
Returns rounded 100, 99, or 98 where all the information after floating-point is lost. And yes, it's not "hiden", but the precision after floating-point is lost, this is obvious when one plots the data or multiplies the series by 100.

The same problem applies for other series as well (for example: "OPEC/ORB").

I do have European number settings in my Ubuntu 20.04 compter (e.g thousands are separated by space and floating points by comma on most occasions), but I have not used this setting for R and this has no effect on my other R code/other libraries. E.g the floating points are still separated by "." in R and the other code works without problems.

My current hypothesis is that the problem is related to jsonlite library (see: https://stackoverflow.com/questions/36038349/significant-digits-when-converting-json-using-fromjson-in-jsonlite). I will fork the Quandl library and test, whether that's the culprit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant