reqIds: Request Next Valid Id

Description Usage Arguments Details Value Note Author(s)

Description

Get the next valid order ID for use with the TWS.

Usage

1
reqIds(conn, numIds = 1)

Arguments

conn

a valid twsConnection object of class twsconn.

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


jlaultman/ibrokers documentation built on May 19, 2019, 12:46 p.m.