Description Usage Arguments Value Examples
Creates an OTC working order.
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)
|
headers |
Object returned from |
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' |
A data.frame
OTC working order.
1 2 | HEADERS = IG_Auth(" ","APIdemo1", " ")
IG_create_working_order(HEADERS) # to be updated
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.