getOandaPositions: List all Positions for an Account

Description Usage Arguments Value Examples

View source: R/OandaPositions.R

Description

List all Positions for an Account. The Positions returned are for every instrument that has had a position during the lifetime of an the Account.

Usage

1
getOandaPositions(ACCOUNT_TYPE, ACCESS_TOKEN, ACCOUNT_ID)

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.

Value

A list of account positions

Examples

1
getOandaPositions(.oandaEnv$ACCOUNT_TYPE, .oandaEnv$ACCESS_TOKEN, .oandaEnv$ACCOUNT_ID)

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