Package com.studerw.tda.model.account
Class CashAccount
java.lang.Object
com.studerw.tda.model.account.SecuritiesAccount
com.studerw.tda.model.account.CashAccount
- All Implemented Interfaces:
Serializable
TDA CashAccount. Most calls return an abstract
SecuritiesAccount instead of the concrete
account type so you need 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:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.studerw.tda.model.account.SecuritiesAccount
SecuritiesAccount.Type -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.studerw.tda.model.account.SecuritiesAccount
getAccountId, getClosingOnlyRestricted, getDayTrader, getIsClosingOnlyRestricted, getOrderStrategies, getOtherFields, getPositions, getRoundTrips, getType
-
Constructor Details
-
CashAccount
public CashAccount()
-
-
Method Details
-
getCurrentBalances
-
getInitialBalances
-
getProjectedBalances
-
toString
- Overrides:
toStringin classSecuritiesAccount
-