Package com.studerw.tda.model.account
Class MarginAccount
java.lang.Object
com.studerw.tda.model.account.SecuritiesAccount
com.studerw.tda.model.account.MarginAccount
- All Implemented Interfaces:
Serializable
TDA MarginAccount. 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
-
MarginAccount
public MarginAccount()
-
-
Method Details
-
getCurrentBalances
-
getInitialBalances
-
getProjectedBalances
-
toString
- Overrides:
toString
in classSecuritiesAccount
-