Class BalanceDTO
- java.lang.Object
-
- tech.cassandre.trading.bot.dto.user.BalanceDTO
-
public final class BalanceDTO extends Object
DTO representing a balance in aCurrencyDTO
for anAccountDTO
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BalanceDTO.BalanceDTOBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BalanceDTO.BalanceDTOBuilder
builder()
boolean
equals(Object o)
BigDecimal
getAvailable()
Returns the amount of thecurrency
in this balance that is available to trade.BigDecimal
getBorrowed()
Returns the borrowed amount of the availablecurrency
in this balance that must be repaid.CurrencyDTO
getCurrency()
Currency.BigDecimal
getDepositing()
Returns the amount of thecurrency
in this balance that is locked in the deposit.BigDecimal
getFrozen()
Returns the frozen amount of thecurrency
in this balance that is locked in trading.BigDecimal
getLoaned()
Returns the loaned amount of the totalcurrency
in this balance that will be returned.BigDecimal
getTotal()
Returns the total amount of thecurrency
in this balance.BigDecimal
getWithdrawing()
Returns the amount of thecurrency
in this balance that is locked in withdrawal.int
hashCode()
String
toString()
-
-
-
Method Detail
-
builder
public static BalanceDTO.BalanceDTOBuilder builder()
-
getCurrency
public CurrencyDTO getCurrency()
Currency.
-
getTotal
public BigDecimal getTotal()
Returns the total amount of thecurrency
in this balance.
-
getAvailable
public BigDecimal getAvailable()
Returns the amount of thecurrency
in this balance that is available to trade.
-
getFrozen
public BigDecimal getFrozen()
Returns the frozen amount of thecurrency
in this balance that is locked in trading.
-
getLoaned
public BigDecimal getLoaned()
Returns the loaned amount of the totalcurrency
in this balance that will be returned.
-
getBorrowed
public BigDecimal getBorrowed()
Returns the borrowed amount of the availablecurrency
in this balance that must be repaid.
-
getWithdrawing
public BigDecimal getWithdrawing()
Returns the amount of thecurrency
in this balance that is locked in withdrawal.
-
getDepositing
public BigDecimal getDepositing()
Returns the amount of thecurrency
in this balance that is locked in the deposit.
-
-