Package com.studerw.tda.model.account
Class SecuritiesAccount
java.lang.Object
com.studerw.tda.model.account.SecuritiesAccount
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CashAccount
,MarginAccount
TDA SecuritiesAccount. This is an abstract class and you need to check the
SecuritiesAccount.Type
to cast to either a CashAccount
or MarginAccount
. For
example:
SecuritiesAccount account = tdaClient.getAccount("2342.."); if (account.getType == SecuritiesAccount.Type.Cash){ CashAccount cashAcct = (CashAccount)account; } else if (account.getType == SecuritiesAccount.Type.Margin){ MarginAccount marginAcct = (MarginAccount)account; } ...
- See Also: