EVOLUTION-MANAGER
Edit File: getFX.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Download Exchange Rates</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for getFX {quantmod}"><tr><td>getFX {quantmod}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2> Download Exchange Rates </h2> <h3>Description</h3> <p>Download exchange rates or metals prices from oanda. </p> <h3>Usage</h3> <pre> getFX(Currencies, from = Sys.Date() - 179, to = Sys.Date(), env = parent.frame(), verbose = FALSE, warning = TRUE, auto.assign = TRUE, ...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>Currencies</code></td> <td> <p> Currency pairs expressed as ‘CUR/CUR’ </p> </td></tr> <tr valign="top"><td><code>from</code></td> <td> <p> start date expressed in ISO CCYY-MM-DD format </p> </td></tr> <tr valign="top"><td><code>to</code></td> <td> <p> end date expressed in ISO CCYY-MM-DD format </p> </td></tr> <tr valign="top"><td><code>env</code></td> <td> <p> which environment should they be loaded into </p> </td></tr> <tr valign="top"><td><code>verbose</code></td> <td> <p> be verbose </p> </td></tr> <tr valign="top"><td><code>warning</code></td> <td> <p> show warnings </p> </td></tr> <tr valign="top"><td><code>auto.assign</code></td> <td> <p> use auto.assign </p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p> additional parameters to be passed to getSymbols.oanda method </p> </td></tr> </table> <h3>Details</h3> <p>A convenience wrapper to <code>getSymbols(x,src='oanda')</code>. See <code>getSymbols</code> and <code>getSymbls.oanda</code> for more detail. </p> <h3>Value</h3> <p>Data will be assigned automatically to the environment specified (the parent environment by default). If <code>auto.assign = FALSE</code>, the data from a single metal request will simply be returned from the function call. </p> <p>If <code>auto.assign = TRUE</code> is used (the default) a vector of downloaded symbol names will be returned. </p> <p>See <code>getSymbols</code> and <code>getSymbols.oanda</code> for more detail. </p> <h3>Author(s)</h3> <p> Jeffrey A. Ryan </p> <h3>References</h3> <p> Oanda.com <a href="https://www.oanda.com">https://www.oanda.com</a> </p> <h3>See Also</h3> <p><code><a href="getSymbols.html">getSymbols</a></code>, <code><a href="getSymbols.oanda.html">getSymbols.oanda</a></code> </p> <h3>Examples</h3> <pre> ## Not run: getFX("USD/JPY") getFX("EUR/USD",from="2005-01-01") ## End(Not run) </pre> <hr /><div style="text-align: center;">[Package <em>quantmod</em> version 0.4.20 <a href="00Index.html">Index</a>]</div> </body></html>