Fix tidyquant tq_get returning NULL for currency trading pairs

53 views Asked by At

If I execute the following command in r

exchange_rates <- tq_get("EUR/USD", get = "exchange.rates", from = "2018-04-01", to = "2023-04-30")

there are no error but the resulting variable is empty:

> exchange_rates
NULL

Is there anything wrong in the way I'm using tq_get? Pulling stock data works just fine.

Thank you for any thoughts or tips you can spare!

EDIT: thank you @AdroMine; get = "exchange.rates" is no longer a supported function of tq_get

0

There are 0 answers