Class AccountDTO
java.lang.Object
tech.cassandre.trading.bot.dto.user.AccountDTO
DTO representing an account owned by a
UserDTO
.
UserDTO
can have several AccountDTO
and each account can have several BalanceDTO
.-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AccountDTO.AccountDTOBuilder
builder()
boolean
Getter accountId.getBalance
(CurrencyDTO currency) Returns balance of a currency.Represents the different balances for each currency owned by the account.Account features.getName()
A descriptive name for this account.int
hashCode()
toString()
-
Method Details
-
getAccountId
Getter accountId.- Returns:
- accountId
-
getBalance
Returns balance of a currency.- Parameters:
currency
- currency- Returns:
- balance
-
equals
-
hashCode
public int hashCode() -
builder
-
getName
A descriptive name for this account. Default value isaccountId
. -
getFeatures
Account features. -
getBalances
Represents the different balances for each currency owned by the account. -
toString
-