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