PnL
ibc.rest.pnl.PnL
Client for managing PnL via the Interactive Brokers API.
__init__(ib_client, ib_session)
Initializes the PnL client.
Parameters
ib_client : InteractiveBrokersClient
The InteractiveBrokersClient Python Client.
InteractiveBrokersSession
The IB session handler.
pnl_server_account()
Returns an object containing PnL for the selected account and its models (if any).
Overview
Delegates to Accounts.pnl_server_account() for a single
source of truth.
Returns
dict:
An AccountPnL resource.