getFX: Download Exchange Rates

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Download exchange rates or metals prices from oanda.

Usage

1
2
3
4
5
6
7
getFX(Currencies,
      from = Sys.Date() - 499,
      to = Sys.Date(),
      env = parent.frame(),
      verbose = FALSE,
      warning = TRUE,
      auto.assign = TRUE, ...)

Arguments

Currencies

Currency pairs expressed as ‘CUR/CUR’

from

start date expressed in ISO CCYY-MM-DD format

to

end date expressed in ISO CCYY-MM-DD format

env

which environment should they be loaded into

verbose

be verbose

warning

show warnings

auto.assign

use auto.assign

...

additional parameters to be passed to getSymbols.oanda method

Details

A convenience wrapper to getSymbols(x,src='oanda'). See getSymbols and getSymbls.oanda for more detail.

Value

The results of the call will be the data will be assigned automatically to the environment specified (parent by default). Additionally a vector of downloaded symbol names will be returned.

See getSymbols and getSymbols.oanda for more detail.

Author(s)

Jeffrey A. Ryan

References

Oanda.com http://www.oanda.com

See Also

getSymbols, getSymbols.oanda

Examples

1
2
3
4
5
6
7
## Not run: 

getFX("USD/JPY")

getFX("EUR/USD",from="2005-01-01")

## End(Not run)

srtg4we5gsetrgwhreyt/ythsrtg534srgedthdgd documentation built on Dec. 12, 2019, 10:04 a.m.