Expand description
Shared IB API client connection per (host, port, client_id).
Data, execution, and historical clients use a single TCP connection per logical connection to avoid client ID conflicts and redundant connections (parity with Python’s get_cached_ib_client).
Structs§
- Shared
Client Handle - Handle to a shared IB client; when dropped, ref count is decremented and the connection is removed from the registry when the count reaches zero.
Functions§
- get_
or_ connect - Returns a handle to the shared IB client for the given (host, port, client_id). If a connection already exists, its ref count is incremented and the same client is returned. Otherwise a new connection is established and registered.