Class StrategyDTO
- java.lang.Object
-
- tech.cassandre.trading.bot.dto.strategy.StrategyDTO
-
public final class StrategyDTO extends Object
DTO representing a strategy.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StrategyDTO.StrategyDTOBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StrategyDTO.StrategyDTOBuilder
builder()
boolean
equals(Object o)
Long
getId()
Technical id.AtomicLong
getLastPositionIdUsed()
Last position id used.String
getName()
Strategy name.long
getNextPositionId()
This method returns the next position id to use.String
getStrategyId()
An identifier that uniquely identifies the strategy.StrategyTypeDTO
getType()
Strategy type.int
hashCode()
void
initializeLastPositionIdUsed(Long value)
This method is used during initialization to set the last position used for this time of strategy.String
toString()
-
-
-
Method Detail
-
initializeLastPositionIdUsed
public void initializeLastPositionIdUsed(Long value)
This method is used during initialization to set the last position used for this time of strategy.- Parameters:
value
- initial value
-
getNextPositionId
public long getNextPositionId()
This method returns the next position id to use.- Returns:
- next position
-
builder
public static StrategyDTO.StrategyDTOBuilder builder()
-
getId
public Long getId()
Technical id.
-
getStrategyId
public String getStrategyId()
An identifier that uniquely identifies the strategy.
-
getType
public StrategyTypeDTO getType()
Strategy type.
-
getName
public String getName()
Strategy name.
-
getLastPositionIdUsed
public AtomicLong getLastPositionIdUsed()
Last position id used.
-
-