Learn R Programming

IBrokers (version 0.10-2)

reqIds: Request Next Valid Id

Description

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

Usage

reqIds(conn, numIds = 1)

Value

A character representation of the next numeric ID.

Arguments

conn

a valid twsConnection object of class twsconn.

numIds

currently ignored by the TWS.

Author

Jeffrey A. Ryan

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.