public class Account
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
Account()
No args constructor for use in serialization
|
Account(java.lang.String id,
java.lang.String accountNumber,
AccountStatus status,
java.lang.String currency,
java.lang.String cash,
java.lang.String portfolioValue,
java.lang.Boolean patternDayTrader,
java.lang.Boolean tradeSuspendedByUser,
java.lang.Boolean tradingBlocked,
java.lang.Boolean transfersBlocked,
java.lang.Boolean accountBlocked,
java.time.ZonedDateTime createdAt,
java.lang.Boolean shortingEnabled,
java.lang.String longMarketValue,
java.lang.String shortMarketValue,
java.lang.String equity,
java.lang.String lastEquity,
java.lang.String multiplier,
java.lang.String buyingPower,
java.lang.String initialMargin,
java.lang.String maintenanceMargin,
java.lang.String sma,
java.lang.Integer daytradeCount,
java.lang.String lastMaintenanceMargin,
java.lang.String daytradingBuyingPower,
java.lang.String regtBuyingPower) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
java.lang.Boolean |
getAccountBlocked()
If true, the account activity by user is prohibited.
|
java.lang.String |
getAccountNumber()
Account number.
|
java.lang.String |
getBuyingPower()
Current available $ buying power; If multiplier = 4, this is your daytrade buying power which is calculated as (last_equity - (last) maintenance_margin) * 4; If multiplier = 2, buying_power = max(equity – initial_margin,0) * 2; If multiplier = 1, buying_power = cash
|
java.lang.String |
getCash()
Cash balance
|
java.time.ZonedDateTime |
getCreatedAt()
Timestamp this account was created at
|
java.lang.String |
getCurrency()
“USD”
|
java.lang.Integer |
getDaytradeCount()
The current number of daytrades that have been made in the last 5 trading days (inclusive of today)
|
java.lang.String |
getDaytradingBuyingPower()
Your buying power for day trades (continuously updated value)
|
java.lang.String |
getEquity()
Cash + long_market_value + short_market_value
|
java.lang.String |
getId()
Account ID.
|
java.lang.String |
getInitialMargin()
Reg T initial margin requirement (continuously updated value)
|
java.lang.String |
getLastEquity()
Equity as of previous trading day at 16:00:00 ET
|
java.lang.String |
getLastMaintenanceMargin()
Your maintenance margin requirement on the previous trading day
|
java.lang.String |
getLongMarketValue()
Real-time MtM value of all long positions held in the account
|
java.lang.String |
getMaintenanceMargin()
Maintenance margin requirement (continuously updated value)
|
java.lang.String |
getMultiplier()
Buying power multiplier that represents account margin classification; valid values 1 (standard limited margin account with 1x buying power), 2 (reg T margin account with 2x intraday and overnight buying power; this is the default for all non-PDT accounts with $2,000 or more equity), 4 (PDT account with 4x intraday buying power and 2x reg T overnight buying power)
|
java.lang.Boolean |
getPatternDayTrader()
Whether or not the account has been flagged as a pattern day trader
|
java.lang.String |
getPortfolioValue()
Total value of cash + holding positions (This field is deprecated.
|
java.lang.String |
getRegtBuyingPower()
Your buying power under Regulation T (your excess equity - equity minus margin value - times your margin multiplier)
|
java.lang.Boolean |
getShortingEnabled()
Flag to denote whether or not the account is permitted to short
|
java.lang.String |
getShortMarketValue()
Real-time MtM value of all short positions held in the account
|
java.lang.String |
getSma()
Value of special memorandum account (will be used at a later date to provide additional buying_power)
|
AccountStatus |
getStatus()
See Account Status
|
java.lang.Boolean |
getTradeSuspendedByUser()
User setting.
|
java.lang.Boolean |
getTradingBlocked()
If true, the account is not allowed to place orders.
|
java.lang.Boolean |
getTransfersBlocked()
If true, the account is not allowed to request money transfers.
|
int |
hashCode() |
void |
setAccountBlocked(java.lang.Boolean accountBlocked)
If true, the account activity by user is prohibited.
|
void |
setAccountNumber(java.lang.String accountNumber)
Account number.
|
void |
setBuyingPower(java.lang.String buyingPower)
Current available $ buying power; If multiplier = 4, this is your daytrade buying power which is calculated as (last_equity - (last) maintenance_margin) * 4; If multiplier = 2, buying_power = max(equity – initial_margin,0) * 2; If multiplier = 1, buying_power = cash
|
void |
setCash(java.lang.String cash)
Cash balance
|
void |
setCreatedAt(java.time.ZonedDateTime createdAt)
Timestamp this account was created at
|
void |
setCurrency(java.lang.String currency)
“USD”
|
void |
setDaytradeCount(java.lang.Integer daytradeCount)
The current number of daytrades that have been made in the last 5 trading days (inclusive of today)
|
void |
setDaytradingBuyingPower(java.lang.String daytradingBuyingPower)
Your buying power for day trades (continuously updated value)
|
void |
setEquity(java.lang.String equity)
Cash + long_market_value + short_market_value
|
void |
setId(java.lang.String id)
Account ID.
|
void |
setInitialMargin(java.lang.String initialMargin)
Reg T initial margin requirement (continuously updated value)
|
void |
setLastEquity(java.lang.String lastEquity)
Equity as of previous trading day at 16:00:00 ET
|
void |
setLastMaintenanceMargin(java.lang.String lastMaintenanceMargin)
Your maintenance margin requirement on the previous trading day
|
void |
setLongMarketValue(java.lang.String longMarketValue)
Real-time MtM value of all long positions held in the account
|
void |
setMaintenanceMargin(java.lang.String maintenanceMargin)
Maintenance margin requirement (continuously updated value)
|
void |
setMultiplier(java.lang.String multiplier)
Buying power multiplier that represents account margin classification; valid values 1 (standard limited margin account with 1x buying power), 2 (reg T margin account with 2x intraday and overnight buying power; this is the default for all non-PDT accounts with $2,000 or more equity), 4 (PDT account with 4x intraday buying power and 2x reg T overnight buying power)
|
void |
setPatternDayTrader(java.lang.Boolean patternDayTrader)
Whether or not the account has been flagged as a pattern day trader
|
void |
setPortfolioValue(java.lang.String portfolioValue)
Total value of cash + holding positions (This field is deprecated.
|
void |
setRegtBuyingPower(java.lang.String regtBuyingPower)
Your buying power under Regulation T (your excess equity - equity minus margin value - times your margin multiplier)
|
void |
setShortingEnabled(java.lang.Boolean shortingEnabled)
Flag to denote whether or not the account is permitted to short
|
void |
setShortMarketValue(java.lang.String shortMarketValue)
Real-time MtM value of all short positions held in the account
|
void |
setSma(java.lang.String sma)
Value of special memorandum account (will be used at a later date to provide additional buying_power)
|
void |
setStatus(AccountStatus status)
See Account Status
|
void |
setTradeSuspendedByUser(java.lang.Boolean tradeSuspendedByUser)
User setting.
|
void |
setTradingBlocked(java.lang.Boolean tradingBlocked)
If true, the account is not allowed to place orders.
|
void |
setTransfersBlocked(java.lang.Boolean transfersBlocked)
If true, the account is not allowed to request money transfers.
|
java.lang.String |
toString() |
public Account()
public Account(java.lang.String id,
java.lang.String accountNumber,
AccountStatus status,
java.lang.String currency,
java.lang.String cash,
java.lang.String portfolioValue,
java.lang.Boolean patternDayTrader,
java.lang.Boolean tradeSuspendedByUser,
java.lang.Boolean tradingBlocked,
java.lang.Boolean transfersBlocked,
java.lang.Boolean accountBlocked,
java.time.ZonedDateTime createdAt,
java.lang.Boolean shortingEnabled,
java.lang.String longMarketValue,
java.lang.String shortMarketValue,
java.lang.String equity,
java.lang.String lastEquity,
java.lang.String multiplier,
java.lang.String buyingPower,
java.lang.String initialMargin,
java.lang.String maintenanceMargin,
java.lang.String sma,
java.lang.Integer daytradeCount,
java.lang.String lastMaintenanceMargin,
java.lang.String daytradingBuyingPower,
java.lang.String regtBuyingPower)
tradingBlocked - sma - tradeSuspendedByUser - portfolioValue - equity - initialMargin - createdAt - buyingPower - maintenanceMargin - currency - id - cash - lastMaintenanceMargin - daytradingBuyingPower - longMarketValue - shortingEnabled - multiplier - lastEquity - shortMarketValue - accountNumber - patternDayTrader - daytradeCount - transfersBlocked - regtBuyingPower - accountBlocked - status - public java.lang.String getId()
public void setId(java.lang.String id)
public java.lang.String getAccountNumber()
public void setAccountNumber(java.lang.String accountNumber)
public AccountStatus getStatus()
public void setStatus(AccountStatus status)
public java.lang.String getCurrency()
public void setCurrency(java.lang.String currency)
public java.lang.String getCash()
public void setCash(java.lang.String cash)
public java.lang.String getPortfolioValue()
public void setPortfolioValue(java.lang.String portfolioValue)
public java.lang.Boolean getPatternDayTrader()
public void setPatternDayTrader(java.lang.Boolean patternDayTrader)
public java.lang.Boolean getTradeSuspendedByUser()
public void setTradeSuspendedByUser(java.lang.Boolean tradeSuspendedByUser)
public java.lang.Boolean getTradingBlocked()
public void setTradingBlocked(java.lang.Boolean tradingBlocked)
public java.lang.Boolean getTransfersBlocked()
public void setTransfersBlocked(java.lang.Boolean transfersBlocked)
public java.lang.Boolean getAccountBlocked()
public void setAccountBlocked(java.lang.Boolean accountBlocked)
public java.time.ZonedDateTime getCreatedAt()
public void setCreatedAt(java.time.ZonedDateTime createdAt)
public java.lang.Boolean getShortingEnabled()
public void setShortingEnabled(java.lang.Boolean shortingEnabled)
public java.lang.String getLongMarketValue()
public void setLongMarketValue(java.lang.String longMarketValue)
public java.lang.String getShortMarketValue()
public void setShortMarketValue(java.lang.String shortMarketValue)
public java.lang.String getEquity()
public void setEquity(java.lang.String equity)
public java.lang.String getLastEquity()
public void setLastEquity(java.lang.String lastEquity)
public java.lang.String getMultiplier()
public void setMultiplier(java.lang.String multiplier)
public java.lang.String getBuyingPower()
public void setBuyingPower(java.lang.String buyingPower)
public java.lang.String getInitialMargin()
public void setInitialMargin(java.lang.String initialMargin)
public java.lang.String getMaintenanceMargin()
public void setMaintenanceMargin(java.lang.String maintenanceMargin)
public java.lang.String getSma()
public void setSma(java.lang.String sma)
public java.lang.Integer getDaytradeCount()
public void setDaytradeCount(java.lang.Integer daytradeCount)
public java.lang.String getLastMaintenanceMargin()
public void setLastMaintenanceMargin(java.lang.String lastMaintenanceMargin)
public java.lang.String getDaytradingBuyingPower()
public void setDaytradingBuyingPower(java.lang.String daytradingBuyingPower)
public java.lang.String getRegtBuyingPower()
public void setRegtBuyingPower(java.lang.String regtBuyingPower)
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Object