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