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

Alphavantage not importing into tibble #189

Open
EconGeo opened this issue Jan 5, 2021 · 0 comments
Open

Alphavantage not importing into tibble #189

EconGeo opened this issue Jan 5, 2021 · 0 comments

Comments

@EconGeo
Copy link

EconGeo commented Jan 5, 2021

Getting errors with both the tidyquant and alphavantager function calls for INCOME_STATEMENT as well as CASH_FLOW and the resulting API call is not translated into a tibble or stored
d <- c("ACC", "AAT") %>% tq_get(get = "alphavantager", av_fun = "INCOME_STATEMENT")

returns

Problem with `mutate()` input `data..`.
ℹ argument is not an atomic vector; coercing
ℹ Input `data..` is `purrr::map(...)`.argument is not an atomic vector; coercingProblem with `mutate()` input `data..`.
ℹ x = 'ACC', get = 'alphavantager': Error: ACC. API parameters used: symbol=ACC, function=INCOME_STATEMENT, apikey=HIDDEN_FOR_YOUR_SAFETYlist(fiscalDateEnding = c("2019-12-31", "2018-12-31", "2017-12-31", "2016-12-31", "2015-12-31"), reportedCurrency = c("USD", "USD", "USD", "USD", "USD"), totalRevenue = c("943042000", "880810000", "796447000", "786361000", "753381000"), totalOperatingExpense = c("763152000", "668215000", "653909000", "613218000", "596477000"), costOfRevenue = c("425607000", "403582000", "362038000", "365276000", "-8232000"), grossProfit = c("943042000", "880810000", "796447000", "786361000", "761613000"),

etc.

and

> d
A tibble: 0 x 2
 … with 2 variables: symbol <chr>, alphavantager <???>

is an empty tibble.

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