View source: R/req_all_open_orders.R
req_all_open_orders | R Documentation |
Update the treasury's ORDER_STATUSES and OPEN_ORDERS
objects and, optionally, receive list of two tibbles
containing the updated ORDER_STATUS and OPEN_ORDERS objects.
req_all_open_orders
() retreives information about every open order
accessible by your username, regardless of the order's client ID (socket) or
whether it was placed via the API or within the Trader Workstation (TWS).
req_all_open_orders(channel = NULL, return_data = is.null(channel))
channel |
One of the following:
|
return_data |
Boolean of length 1. Defaults to TRUE unless argument channel is
specified. If FALSE, data retrieved by the function will be returned as the
funciton's output. If TRUE, then a Boolean succeses flag will be returned as
the function's output indicating the success (TRUE) or failure (FALSE) of the
function's attempt to transceive data to/from IB. Data in the
|
This function is called for its side effect of updating the
treasury
, which takes place every time the function executes.
Additionally, the function's return value depends upon the value passed in as
return_data as follows:
If return_data == FALSE
: A Boolean success flag,
returned invisibly, indicating that the function executed correctly and
updated the treasury
with any new data retrieved.
If return_data == TRUE
: Any new data retrieved will
be returned in a tibble in addition to being added to the
treasury
. If no new data is available, returns NULL.
return_data defaults to TRUE unless channel is specified.
This function updates the following treasury objects:
OPEN_ORDERS A tibble in which each row represents an order that, at the time it was last updated, had not fully filled. The column names are described in the Contract, Order, and OrderState sections of IB's documentation.
ORDER_STATUSES A tibble in which each row represents an order that, at the time it was last updated, had not fully filled. The column names are described in the Order Status section of IB's documentation.
Other orders:
cancel_order()
,
place_order()
,
req_auto_open_orders()
,
req_completed_orders()
,
req_ids()
,
req_open_orders()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.