Description Usage Arguments Details Value Examples
View source: R/OandaForexLabs.R
Returns up to 1 year worth of economic calendar information relevant to an instrument. For example, if the instrument is EUR_USD, then all economic information relevant to the Euro and the US Dollar will be included. Some of the entries are strictly news about an important meeting, while other entries may contain economic indicator data.
1 2 | EconomicCalendarOanda(ACCOUNT_TYPE, ACCESS_TOKEN, ACCOUNT_ID,
INSTRUMENTS = "EUR_USD", PERIOD = "1 year")
|
ACCOUNT_TYPE |
"practice", "real" or "sandbox" |
ACCESS_TOKEN |
The authorization bearer token previously obtained by the client, can be found in oanda environment |
ACCOUNT_ID |
ID of the Account to create the Order for. |
INSTRUMENTS |
Instrument to get candlestick data for e.g. "AUD_USD" |
PERIOD |
Required Period of time to retrieve calendar data for. |
Period includes:
- 1 hour
- 12 hours
- 1 day
- 1 week
- 1 month
- 3 months
- 6 months
- 1 year
A data.table
1 2 | Calenda = EconomicCalendarOanda(.oandaEnv$ACCOUNT_TYPE, .oandaEnv$ACCESS_TOKEN, .oandaEnv$ACCOUNT_ID, INSTRUMENTS = 'AUD_USD', PERIOD = '1 year')
Calenda
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.