EconomicCalendarOanda: Economic Calendar information relevant to an instrument

Description Usage Arguments Details Value Examples

View source: R/OandaForexLabs.R

Description

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.

Usage

1
2
EconomicCalendarOanda(ACCOUNT_TYPE, ACCESS_TOKEN, ACCOUNT_ID,
  INSTRUMENTS = "EUR_USD", PERIOD = "1 year")

Arguments

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.

Details

Period includes:
- 1 hour
- 12 hours
- 1 day
- 1 week
- 1 month
- 3 months
- 6 months
- 1 year

Value

A data.table

Examples

1
2
Calenda = EconomicCalendarOanda(.oandaEnv$ACCOUNT_TYPE, .oandaEnv$ACCESS_TOKEN, .oandaEnv$ACCOUNT_ID, INSTRUMENTS = 'AUD_USD', PERIOD = '1 year')
Calenda

ivanliu1989/RQuantAPI documentation built on Sept. 13, 2019, 11:54 a.m.