The Wayback Machine - https://web.archive.org/web/20201015201112/https://github.com/business-science/tidyquant/issues/165
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

quandl.datatable api (on R 3.6.1) fails with some datatables #165

Open
shakfu opened this issue Apr 19, 2020 · 2 comments
Open

quandl.datatable api (on R 3.6.1) fails with some datatables #165

shakfu opened this issue Apr 19, 2020 · 2 comments

Comments

@shakfu
Copy link

@shakfu shakfu commented Apr 19, 2020

this works well:

Quandl.datatable('SHARADAR/SEP', ticker='AAPL', date.gte='2020-01-01') %>% tibble::as_tibble()

but the natural equivalent in tidyquant fails to retrieve any data:

tq_get('SHARADAR/SEP', get='quandl.datatable', ticker='AAPL', date.gte='2020-01-01')

with the warning

[1] NA
Warning message:
x = 'SHARADAR/SEP', get = 'quandl.datatable': Error in paste0("datatables/", datatable_code): argument "datatable_code" is missing, with no default
@gwd999
Copy link

@gwd999 gwd999 commented Apr 19, 2020

I also agrree with @shakfu that it could help if there was a working example for tq_get eg with Quandl packages Quandl.datatable example data, since I am also not able get that working with tq_get()
E.g.: what would be the equivalent in tidyquant of

dt1 <- Quandl.datatable( datatable_code = 'ZACKS/FC', ticker='AAPL') %>% tibble::as_tibble()

@gwd999
Copy link

@gwd999 gwd999 commented Apr 19, 2020

None of these variations to reproduce dt1 seem to work, giving al sorts of errors

#expected result
dt1 <- Quandl.datatable(
    datatable_code = 'ZACKS/FC', ticker='AAPL', paginate = TRUE) %>% tibble::as_tibble()

#failing attempts
dt2a <- tq_get(
    x = 'ZACKS/FC', 
    get= "quandl.datatable", ticker='AAPL')

dt2b <- tq_get(
    x = 'AAPL', 
    get= "quandl.datatable", datatable_code = 'ZACKS/FC', ticker='AAPL' )

dt2c <- tq_get(
    x = 'AAPL', 
    get= "quandl.datatable", datatable_code = 'ZACKS/FC')

dt2d <- tq_get(
    x = 'ZACKS/FC', 
    get= "quandl.datatable", datatable_code = 'ZACKS/FC', ticker='AAPL')

dt2e <- tq_get(
    x = 'AAPl', 
    get= "quandl.datatable", datatable_code = "ZACKS/FC, ticker='AAPL'")

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.