IG_create_working_order: IG API Creates an OTC working order.

Description Usage Arguments Value Examples

View source: R/IGAPI.R

Description

Creates an OTC working order.

Usage

1
2
3
4
5
IG_create_working_order(headers,
  url = "https://demo-api.ig.com/gateway/deal/workingorders/otc",
  dealReference, currency_code, direction, epic, expiry, good_till_date,
  guaranteed_stop, level, limit_distance, limit_level, size, stop_distance,
  stop_level, time_in_force, order_type, timeo = 5)

Arguments

headers

Object returned from IG_Auth

url

API URL

dealReference

A user-defined reference identifying the submission of the order

currency_code

Currency. Restricted to available instrument currencies

direction

Deal direction ('BUY' or 'SELL')

epic

Instrument epic identifier

expiry

Instrument expiry

good_till_date

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

guaranteed_stop

True if a guaranteed stop is required

level

Closing deal level

limit_distance

Limit distance

limit_level

Limit level

size

Deal size

stop_distance

Stop distance

stop_level

Stop level

order_type

'LIMIT', 'MARKET', 'QUATE'

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_create_working_order(HEADERS) # to be updated

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