EVOLUTION-MANAGER
Edit File: getMetals.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 Daily Metals Prices</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 getMetals {quantmod}"><tr><td>getMetals {quantmod}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2> Download Daily Metals Prices </h2> <h3>Description</h3> <p>Download daily metals prices from oanda. </p> <h3>Usage</h3> <pre> getMetals(Metals, from = Sys.Date() - 179, to = Sys.Date(), base.currency="USD", env = parent.frame(), verbose = FALSE, warning = TRUE, auto.assign = TRUE, ...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>Metals</code></td> <td> <p> metals expressed in common name or symbol form </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>base.currency</code></td> <td> <p> which currency should the price be in </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>. </p> <p>The most useful aspect of getMetals is the ability to specify the Metals in terms of underlying 3 character symbol or by name (e.g. XAU (gold) , XAG (silver), XPD (palladium), or XPT (platinum)). </p> <p>There are unique aspects of any continuously traded commodity, and it is recommended that the user visit <a href="https://www.oanda.com">https://www.oanda.com</a> for details on specific pricing issues. </p> <p>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: getMetals(c("gold","XPD")) getMetals("plat",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>