EVOLUTION-MANAGER
Edit File: getSymbols.oanda.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 Currency and Metals Data from Oanda.com</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 getSymbols.oanda {quantmod}"><tr><td>getSymbols.oanda {quantmod}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2> Download Currency and Metals Data from Oanda.com </h2> <h3>Description</h3> <p>Access to 191 currency and metal prices, downloadable as more that 36000 currency pairs from Oanda.com. </p> <p>Downloads <code>Symbols</code> to specified <code>env</code> from <a href="https://www.oanda.com">https://www.oanda.com</a> historical currency database. This method is not meant to be called directly, instead a call to <code>getSymbols("x",src="oanda")</code> will in turn call this method. It is documented for the sole purpose of highlighting the arguments accepted, and to serve as a guide to creating additional getSymbols 'methods'. </p> <h3>Usage</h3> <pre> getSymbols.oanda(Symbols, env, return.class = "xts", from = Sys.Date() - 179, to = Sys.Date(), ...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>Symbols</code></td> <td> <p> a character vector specifying the names of each symbol to be loaded - expressed as a currency pair. (e.g. U.S. Dollar to Euro rate would be expressed as a string “USD/EUR”. The naming convention follows from Oanda.com, and a table of possible values is available by calling <code>oanda.currencies</code> </p> </td></tr> <tr valign="top"><td><code>env</code></td> <td> <p> where to create objects. </p> </td></tr> <tr valign="top"><td><code>return.class</code></td> <td> <p> class of returned object </p> </td></tr> <tr valign="top"><td><code>from</code></td> <td> <p> Start of series expressed as "CCYY-MM-DD" </p> </td></tr> <tr valign="top"><td><code>to</code></td> <td> <p> Start of series expressed as "CCYY-MM-DD" </p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p> additional parameters </p> </td></tr> </table> <h3>Details</h3> <p>Meant to be called internally by getSymbols only. </p> <p>Oanda data is 7 day daily average price data, that is Monday through Sunday. Oanda only provides historical data for the past 180 days. getSymbols will return as much data as possible, and warn when the <code>from</code> date is more than 180 days ago. </p> <h3>Value</h3> <p>A call to getSymbols(Symbols,src="oanda") will load into the specified environment one object for each 'Symbol' specified, with class defined by 'return.class'. Presently this may be 'ts', 'zoo', 'xts', or 'timeSeries'. </p> <h3>Note</h3> <p>Oanda rates are quoted as one unit of base currency to the equivelant amount of foreign currency. </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> Currencies: <code><a href="getSymbols.FRED.html">getSymbols.FRED</a></code>, <code><a href="getSymbols.html">getSymbols</a></code> </p> <h3>Examples</h3> <pre> ## Not run: getSymbols("USD/EUR",src="oanda") getSymbols("USD/EUR",src="oanda",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>