Expand description
Describes items present in an account.
§Account Management
This module provides functionality for managing positions and profit and loss (PnL) information in a trading system. It includes structures and implementations for:
- Position tracking
- Daily, unrealized, and realized PnL calculations
- Family code management
- Real-time PnL updates for individual positions
Modules§
- blocking
- Blocking account management API implemented on top of the synchronous client.
- types
- Domain types for the accounts module
Structs§
- Account
Multi Value - Key/value pair returned for a specific account/model code pair.
- Account
Portfolio Value - Aggregated valuation details for a single contract within the account.
- Account
Summary - Account information as it appears in the TWS’ Account Summary Window
- Account
Summary Tags - Constants for account summary tags used in account summary requests. These tags define which account information fields to retrieve.
- Account
Update Time - Timestamp wrapper for account update streams.
- Account
Value - Single account value update emitted by the API.
- Family
Code - Family code assigned to a group of accounts.
- PnL
- Aggregated profit and loss metrics for the entire account.
- PnLSingle
- Real-time profit and loss metrics for a single position.
- Position
- Open position held within the account.
- Position
Multi - Position scoped to a specific account and model code.
Enums§
- Account
Summary Result - Result of an account summary request emitted by the Client.
- Account
Update - Account update events delivered while streaming high-level account data.
- Account
Update Multi - Account update events scoped to an account/model code pair.
- Position
Update - Messages emitted while streaming position updates.
- Position
Update Multi - Messages emitted while streaming model-code scoped position updates.
Functions§
- account_
summary - Subscribe to account summary updates for a group of accounts.
- account_
updates - Subscribe to detailed account updates for a specific account.
- account_
updates_ multi - Subscribe to account updates scoped by account and model code.
- family_
codes - Fetch the account family codes registered with the broker.
- managed_
accounts - Fetch the list of accounts accessible to the current user.
- pnl
- Subscribe to real-time daily and unrealized PnL updates for an account.
- pnl_
single - Subscribe to real-time daily PnL updates for a single contract.
- positions
- Subscribe to streaming position updates for all accessible accounts.
- positions_
multi - Subscribe to streaming position updates scoped by account and model code.
- server_
time - Query the current server time reported by TWS or IB Gateway.