Class Account

java.lang.Object
com.jquestrade.Account

public class Account extends Object
Represents a trading account. Could be a TFSA, RRSP, cash, etc.
See Also:
  • Method Details

    • getType

      public String getType()
      Returns the type of the account (e.g., "Cash", "Margin").
      Returns:
      The type of account.
      See Also:
    • getNumber

      public String getNumber()
      Returns the eight-digit account number (e.g., "26598145").
      Returns:
      The eight-digit account number.
    • getStatus

      public String getStatus()
      Returns the status of the account (e.g., Active).
      Returns:
      Status of the account.
      See Also:
    • isPrimary

      public boolean isPrimary()
      Returns whether or not this is a primary account for the holder.
      Returns:
      Whether this is a primary account for the holder.
    • isBilling

      public boolean isBilling()
      Returns whether or not this account is one that gets billed for various expenses such as fees, market data, etc.
      Returns:
      Whether this account is the account that gets billed for expenses/fees.
    • getClientAccountType

      public String getClientAccountType()
      Returns the type of client holding the account (e.g., "Individual").
      Returns:
      The type of client holding the account.
      See Also:
    • getUserId

      public int getUserId()
      Returns the internal identifier of the user making the request.
      Returns:
      The internal identifier of the user making the request.