Skip to main content

subscribe_pnl

Function subscribe_pnl 

Source
pub async fn subscribe_pnl(
    client: &Arc<Client>,
    account_id: AccountId,
) -> 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.