Skip to navigation

TWSSyncWrapper Class

View as MarkdownOpen in Claude

The TWSSyncWrapper class is produced from the ibapi/sync_wrapper file. Clients looking to utilize the class may seek to replace their typical imports for ibapi/client and ibapi/wrapper with an import for from ibapi.sync_wrapper import TWSSyncWrapper.

Constructor Arguments

timeout
int32

Default timeout in seconds applied to all connected functions. If not specified, a default value of 30 seconds is used.

from ibapi.sync_wrapper import TWSSyncWrapper
app = TWSSyncWrapper(timeout=30)