close_position: Close an existing position

Description Usage Arguments

View source: R/position.R

Description

Close an existing position See the following link for further information: http://developer.oanda.com/rest-live/positions/#cloneExistingPosition

Usage

1
close_position(oanda, instrument, account_id = NULL)

Arguments

instrument

Close an open position for a specific instrument only.

account_id

string. The account id to fetch the list of tradeable instruments for. This value will be used if it is specified. If not specified, the value which OANDA object has inside is used as a default.


beykuet/ROandaAPI documentation built on May 6, 2019, 2:30 p.m.