Class PositionRulesDTO.Builder
- java.lang.Object
-
- tech.cassandre.trading.bot.dto.position.PositionRulesDTO.Builder
-
- Enclosing class:
- PositionRulesDTO
public static final class PositionRulesDTO.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PositionRulesDTO
create()
Creates position rules.PositionRulesDTO.Builder
stopGainPercentage(float newStopGainPercentage)
Stop gain percentage.PositionRulesDTO.Builder
stopLossPercentage(float newStopLossPercentage)
Stop loss percentage.
-
-
-
Method Detail
-
stopGainPercentage
public PositionRulesDTO.Builder stopGainPercentage(float newStopGainPercentage)
Stop gain percentage.- Parameters:
newStopGainPercentage
- stop gain percentage- Returns:
- builder
-
stopLossPercentage
public PositionRulesDTO.Builder stopLossPercentage(float newStopLossPercentage)
Stop loss percentage.- Parameters:
newStopLossPercentage
- stop loss percentage- Returns:
- builder
-
create
public PositionRulesDTO create()
Creates position rules.- Returns:
- position rules
-
-