HistoricalPositionOanda: Historical Position ratios for a supported instrument

Description Usage Arguments Details Value Examples

View source: R/OandaForexLabs.R

Description

Returns up to 1 year worth of historical position ratios for a supported instrument.

Usage

1
2
HistoricalPositionOanda(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 day
- 2 days
- 1 week
- 1 month
- 3 months
- 6 months
- 1 year

Value

A data.table

Examples

1
2
HistPos <- HistoricalPositionOanda(.oandaEnv$ACCOUNT_TYPE, .oandaEnv$ACCESS_TOKEN, .oandaEnv$ACCOUNT_ID, INSTRUMENTS = 'AUD_USD', PERIOD = '1 year')
HistPos

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