Class BalanceDTO.BalanceDTOBuilder
java.lang.Object
tech.cassandre.trading.bot.dto.user.BalanceDTO.BalanceDTOBuilder
- Enclosing class:
- BalanceDTO
-
Method Summary
Modifier and TypeMethodDescriptionavailable
(BigDecimal available) Returns the amount of theCurrencyDTO
in this balance that is available to trade.borrowed
(BigDecimal borrowed) Returns the borrowed amount of the availableCurrencyDTO
in this balance that must be repaid.build()
currency
(CurrencyDTO currency) Currency.depositing
(BigDecimal depositing) Returns the amount of theCurrencyDTO
in this balance that is locked in the deposit.frozen
(BigDecimal frozen) Returns the frozen amount of theCurrencyDTO
in this balance that is locked in trading.loaned
(BigDecimal loaned) Returns the loaned amount of the totalCurrencyDTO
in this balance that will be returned.toString()
total
(BigDecimal total) Returns the total amount of theCurrencyDTO
in this balance.withdrawing
(BigDecimal withdrawing) Returns the amount of theCurrencyDTO
in this balance that is locked in withdrawal.
-
Method Details
-
currency
Currency.- Returns:
this
.
-
total
Returns the total amount of theCurrencyDTO
in this balance.- Returns:
this
.
-
available
Returns the amount of theCurrencyDTO
in this balance that is available to trade.- Returns:
this
.
-
frozen
Returns the frozen amount of theCurrencyDTO
in this balance that is locked in trading.- Returns:
this
.
-
loaned
Returns the loaned amount of the totalCurrencyDTO
in this balance that will be returned.- Returns:
this
.
-
borrowed
Returns the borrowed amount of the availableCurrencyDTO
in this balance that must be repaid.- Returns:
this
.
-
withdrawing
Returns the amount of theCurrencyDTO
in this balance that is locked in withdrawal.- Returns:
this
.
-
depositing
Returns the amount of theCurrencyDTO
in this balance that is locked in the deposit.- Returns:
this
.
-
build
-
toString
-