IG_update_open_pos: IG API Updates an OTC position.

Description Usage Arguments Value Examples

View source: R/IGAPI.R

Description

Updates an OTC position.

Usage

1
2
3
4
IG_update_open_pos(headers,
  url = "https://demo-api.ig.com/gateway/deal/positions/otc", limit_level,
  stop_level, deal_id, trailingStop, trailingStopIncrement,
  trailingStopDistance, timeo = 5)

Arguments

headers

Object returned from IG_Auth

url

API URL

limit_level

Limit level

stop_level

Stop level

deal_id

deal identifier

trailingStop

Whether the stop has to be moved towards the current level in case of a favourable trade

trailingStopIncrement

increment step in pips for the trailing stop

trailingStopDistance

Trailing stop distance

timeo

number of tries

Value

A data.frame Deal reference of the transaction

Examples

1
2
HEADERS = IG_Auth(" ","APIdemo1", " ")
IG_update_open_pos(HEADERS) # to be updated

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