Skip to main content Skip to footer

A developer can get an information about account. To do it he shoud use Account.BrokerageProvider.AccountData object. The folowing information is available:

  • Currency - base currency of account;
  • InitialBalance - initial balance of account. Can be double.NaN if information is not available;
  • AvailableBalance - current balance (without current unrealized profit). Can be double.NaN if information is not available. Available balance can be calculated as InitialBalance plus RealizedProfitLoss;
  • Equity - current equity (balance + current unrealized profit). Can be double.NaN if information is not available;
  • RealizedProfitLoss - realized profit/loss. Can be double.NaN if information is not available;
  • Leverage - leverage. Can be double.NaN if information is not available;
  • Margin - currently locked by open positions money. Margin depends on Leverage. For calculating margin you have to divide all your open positions by Leverage;
  • MarginPercent - is Equity/Margin*100%;
  • IsDemo - returns true if the account is demo. Information about account is accessible only logon. Before logon, the value is null;
  • PositionAccountingType - the type of position accounting: netting or hedging. If this information is not available (for example, account is not connected yet) then the result is null

Cookies Notice

We use cookies to improve your experience, personalize content, and analyze our traffic. By clicking "Accept All Cookies," you agree to the storing of cookies on your device. You can manage your cookie preferences at any time by visiting our Cookie Settings.