Parent: Object
Represents an account associated with a connected broker.
Pass the associated BrokerBase instance when creating BrokerAccount instances.
Returns the total profit of the positions in the Positions List, based on their Quantity and CurrentPrice.
Returns the total percentage profit of the positions in the Positions List, based on their Quantity and CurrentPrice.
Returns the total value of the positions in the Positions List, based on their Quantity and CurrentPrice.
Returns the account number, or identifier, associated with this account.
Represents the overall account balance, or value. If the Broker does not have a value that maps cleanly to AccountValue, leave it unassigned and use the CustomFields property to display Broker-specific information.
Returns the BrokerBase instance associated with the account.
Represents the current buying power available in the account. If the Broker does not have a value that maps cleanly to BuyingPower, leave it unassigned and use the CustomFields property to display Broker-specific information.
Represents the available cash balance in the account. If the Broker does not have a value that maps cleanly to Cash, leave it unassigned and use the CustomFields property to display Broker-specific information.
Some Broker Providers populate this Dictionary with balance amounts per currency symbol in the account.
Use this property to assign any Broker-specific balances or fields that you wish displayed in WL8. These fields will display, along with AccountValue, Cash, and BuyingPower (if assigned) in the Accounts window.
This method returns the balance from the CurrencyBalances proeprty for the corresponding currency symbol, or zero if the symbol is not contained in the Dictionary.
A List of BrokerPosition instances that represent the open positions held in the account. Create a BrokerPosition instance for each open position reported by the Broker and add it to this List.
Call this method from within your Broker Provider to set a currency specific balance amount. If you pass zero, the corresponding currency symbol is removed from the CurrencyBalances property.