getOandaOrderList: Get a list of Orders of an Account

Description Usage Arguments Value Examples

View source: R/OandaOrders.R

Description

Get a list of Orders of an Account

Usage

1
2
getOandaOrderList(ACCOUNT_TYPE, ACCESS_TOKEN, ACCOUNT_ID,
  INSTRUMENTS = "AUD_USD", PENDING = FALSE)

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"

PENDING

return only pending orders or not

Value

A list of order histories

Examples

1
2
3
4
5
getOandaOrderList(.oandaEnv$ACCOUNT_TYPE, .oandaEnv$ACCESS_TOKEN, .oandaEnv$ACCOUNT_ID, INSTRUMENTS = 'USD_CAD')
# $lastTransactionID
# [1] "2584"
# $orders
# list()

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