IG_update_working_order: IG API Updates an OTC working order.

Description Usage Arguments Value Examples

View source: R/IGAPI.R

Description

Updates an OTC working order.

Usage

1
2
3
4
IG_update_working_order(headers,
  url = "https://demo-api.ig.com/gateway/deal/workingorders/otc",
  good_till_date, level, limit_distance, limit_level, stop_distance, stop_level,
  time_in_force, order_type, deal_id, timeo = 5)

Arguments

headers

Object returned from IG_Auth

url

API URL

good_till_date

This accepts two possible formats either yyyy/mm/dd hh:mm:ss in UTC Time or Unix Timestamp in milliseconds

level

Closing deal level

limit_distance

Limit distance

limit_level

Limit level

stop_distance

Stop distance

stop_level

Stop level

order_type

'LIMIT', 'MARKET', 'QUATE'

deal_id

deal ID

timeo

number of tries

timeInForce

'EXECUTE_AND_ELIMINATE' or 'FILL_OR_KILL'

Value

A data.frame OTC working order.

Examples

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

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