ib_async.connection
Generated from the installed ib_async 2.1.0 package. Signatures and defaults are version-specific.
Event-driven socket connection.
Connection
Connection()
Completeness: advanced-low-level · Canonical ID: ib_async.connection.Connection
Advanced or protocol-level surface classified separately from application utilities.
Event-driven socket connection.
Events:
hasData(data: bytes): Emits the received socket data.disconnected(msg: str): Is emitted on socket disconnect, with an error message in case of error, or an empty string in case of a normal disconnect.
connectAsync
connectAsync(self, host, port)
Completeness: advanced-low-level · Canonical ID: ib_async.connection.Connection.connectAsync
Advanced or protocol-level surface classified separately from application utilities.
No library docstring is provided; consult the signature, type fields, and operational guides.
connection_lost
connection_lost(self, exc)
Completeness: advanced-low-level · Canonical ID: ib_async.connection.Connection.connection_lost
Advanced or protocol-level surface classified separately from application utilities.
Called when the connection is lost or closed.
The argument is an exception object or None (the latter meaning a regular EOF is received or the connection was aborted or closed).
data_received
data_received(self, data)
Completeness: advanced-low-level · Canonical ID: ib_async.connection.Connection.data_received
Advanced or protocol-level surface classified separately from application utilities.
Called when some data is received.
The argument is a bytes object.
disconnect
disconnect(self)
Completeness: advanced-low-level · Canonical ID: ib_async.connection.Connection.disconnect
Advanced or protocol-level surface classified separately from application utilities.
No library docstring is provided; consult the signature, type fields, and operational guides.
isConnected
isConnected(self)
Completeness: advanced-low-level · Canonical ID: ib_async.connection.Connection.isConnected
Advanced or protocol-level surface classified separately from application utilities.
No library docstring is provided; consult the signature, type fields, and operational guides.
reset
reset(self)
Completeness: advanced-low-level · Canonical ID: ib_async.connection.Connection.reset
Advanced or protocol-level surface classified separately from application utilities.
No library docstring is provided; consult the signature, type fields, and operational guides.
sendMsg
sendMsg(self, msg)
Completeness: advanced-low-level · Canonical ID: ib_async.connection.Connection.sendMsg
Advanced or protocol-level surface classified separately from application utilities.
No library docstring is provided; consult the signature, type fields, and operational guides.