cloaseOandaTrade: Close a trade in Oanda

Description Usage Arguments Examples

View source: R/OandaTrades.R

Description

Close a trade in Oanda

Usage

1
cloaseOandaTrade(ACCOUNT_TYPE, ACCESS_TOKEN, ACCOUNT_ID, TRADE_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.

TRADE_ID

Identifier of trade to be closed

Examples

1
cloaseOandaTrade(.oandaEnv$ACCOUNT_TYPE, .oandaEnv$ACCESS_TOKEN, .oandaEnv$ACCOUNT_ID, "XXXXX")

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