Package com.jquestrade
Class Account
java.lang.Object
com.jquestrade.Account
Represents a trading account. Could be a TFSA, RRSP, cash, etc.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the type of client holding the account (e.g., "Individual").Returns the eight-digit account number (e.g., "26598145").Returns the status of the account (e.g., Active).getType()
Returns the type of the account (e.g., "Cash", "Margin").int
Returns the internal identifier of the user making the request.boolean
Returns whether or not this account is one that gets billed for various expenses such as fees, market data, etc.boolean
Returns whether or not this is a primary account for the holder.
-
Method Details
-
getType
Returns the type of the account (e.g., "Cash", "Margin").- Returns:
- The type of account.
- See Also:
-
- The User Account Type section for all possible values.
-
getNumber
Returns the eight-digit account number (e.g., "26598145").- Returns:
- The eight-digit account number.
-
getStatus
Returns the status of the account (e.g., Active).- Returns:
- Status of the account.
- See Also:
-
- The Account Status section for all possible values.
-
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
Returns the type of client holding the account (e.g., "Individual").- Returns:
- The type of client holding the account.
- See Also:
-
- The client Account Type section for all possible values.
-
getUserId
public int getUserId()Returns the internal identifier of the user making the request.- Returns:
- The internal identifier of the user making the request.
-