pub async fn subscribe_pnl(
client: &Arc<Client>,
ib_account: Ustr,
session_tasks: &TaskGroup,
) -> Result<()>Expand description
Subscribe to PnL updates for the account.
This spawns a background task to handle PnL updates.
ยงErrors
Returns an error if subscription fails.