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

Error in function public_candles(product_id = "ETH-EUR",granularity = 60) #18

Open
dirkdeslegte opened this issue Apr 12, 2021 · 7 comments
Assignees

Comments

@dirkdeslegte
Copy link

When populating the granularity in the function public_candles, the following error appears:

Error in UseMethod("as.request") : no applicable method for 'as.request' applied to an object of class "c('double', 'numeric')"

@dirkdeslegte
Copy link
Author

Apologies, noticed that you are working on the issue

@wittec
Copy link
Contributor

wittec commented Jul 28, 2021

If I locally load the RGDAX 1.0 functions "public_candles" and "parse_response", I get public candles just fine with RGDAX 1.1 installed. Is it as easy as swapping the 1.1 versions of these functions with the old 1.0 versions?

@DheerajAgarwal
Copy link
Owner

@wittec Can you please test this in the latest version and let me know if you still face an issue. I will suggest to unload the old version completely and install fresh from CRAN.

@wittec
Copy link
Contributor

wittec commented Aug 7, 2021

@wittec Can you please test this in the latest version and let me know if you still face an issue. I will suggest to unload the old version completely and install fresh from CRAN.

I removed the old package and downloaded from CRAN. When I use the public_candles it prints the data in the console, and returns a LIST... for example:

candles <- public_candles("ETC-USD", granularity = 300)

returns list of 10 named "candles".

@MotivaoCrypto
Copy link

@DheerajAgarwal I'm having the same issue. The return object for public_candles is not a dataframe anymore, it seems to be in a json format that has a lot of garbage information.

prices <- public_candles(product_id = "BTC-USD", granularity = 606024)

image
image

@adamek2120
Copy link

Has there been any fix to the public_candles problem? I'm still getting the data printed in the console while returning a list. Any updatE?

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

No branches or pull requests

6 participants
@DheerajAgarwal @wittec @MotivaoCrypto @adamek2120 @dirkdeslegte and others