I'm new to R, but I think I found an issue with alphavantager when using the function av_get() for getting forex quotes.
Here is the code I used and the error I got:
> av_get(av_fun = "CURRENCY_EXCHANGE_RATE", from_currency = "USD", to_currency = "JPY") Error: list(1. From_Currency Code= "USD",2. From_Currency Name= "United States Dollar",3. To_Currency Code= "JPY",4. To_Currency Name= "Japanese Yen",5. Exchange Rate= "110.16000000",6. Last Refreshed= "2020-01-16 18:05:02",7. Time Zone= "UTC",8. Bid Price= "110.15000000",9. Ask Price= "110.16000000"). API parameters used: symbol=NULL, function=CURRENCY_EXCHANGE_RATE, from_currency=USD, to_currency=JPY, apikey=HIDDEN_FOR_YOUR_SAFETY In addition: Warning message: In stri_c(..., sep = sep, collapse = collapse, ignore_null = TRUE) : argument is not an atomic vector; coercing
I also attach here the topic I created on Rstudio community about this issue.
Any help if I'm wrong is welcome.
Thank you in advance
Hi there,
I'm new to R, but I think I found an issue with alphavantager when using the function av_get() for getting forex quotes. Here is the code I used and the error I got:
> av_get(av_fun = "CURRENCY_EXCHANGE_RATE", from_currency = "USD", to_currency = "JPY") Error: list(
1. From_Currency Code= "USD",
2. From_Currency Name= "United States Dollar",
3. To_Currency Code= "JPY",
4. To_Currency Name= "Japanese Yen",
5. Exchange Rate= "110.16000000",
6. Last Refreshed= "2020-01-16 18:05:02",
7. Time Zone= "UTC",
8. Bid Price= "110.15000000",
9. Ask Price= "110.16000000"). API parameters used: symbol=NULL, function=CURRENCY_EXCHANGE_RATE, from_currency=USD, to_currency=JPY, apikey=HIDDEN_FOR_YOUR_SAFETY In addition: Warning message: In stri_c(..., sep = sep, collapse = collapse, ignore_null = TRUE) : argument is not an atomic vector; coercing
I also attach here the topic I created on Rstudio community about this issue.
Any help if I'm wrong is welcome. Thank you in advance