Class StrategyDTO
java.lang.Object
tech.cassandre.trading.bot.dto.strategy.StrategyDTO
DTO representing a strategy.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
boolean
Last strategyId used in database - Used to generate the next strategyId when there is a creation.getName()
Strategy name - Comes from the Java annotation.long
This method returns the next position id to use.An identifier that uniquely identifies the strategy - Comes from the Java annotation.getUid()
Technical id.int
hashCode()
void
initializeLastPositionIdUsed
(Long value) This method is used during initialization to set the last position used for this time of strategy.toString()
-
Method Details
-
initializeLastPositionIdUsed
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
-
equals
-
hashCode
public int hashCode() -
builder
-
getUid
Technical id. -
getStrategyId
An identifier that uniquely identifies the strategy - Comes from the Java annotation. -
getName
Strategy name - Comes from the Java annotation. -
getLastPositionIdUsed
Last strategyId used in database - Used to generate the next strategyId when there is a creation. -
toString
-