reqIds {IBrokers} | R Documentation |
Request Next Valid Id
Description
Get the next valid order ID for use with the TWS.
Usage
reqIds(conn, numIds = 1)
Arguments
conn |
a valid twsConnection object of class |
numIds |
currently ignored by the TWS. |
Details
twsconn
objects maintain the next valid id inside of the object,
returning the current id, and incrementing by 1 with each call
to reqIds.
For twsconn
objects, reqIds
and .reqIds
results
are identical.
Value
A character representation of the next numeric ID.
Note
The TWS will keep track of order ids across connection ids and sessions. The values may be reset only as outlined by the official TWS documentation. IBrokers simply records and manages the data as recieved from the TWS upon initial connection. Each connection id will have a different order id associated with it.
Author(s)
Jeffrey A. Ryan
[Package IBrokers version 0.10-2 Index]