Class PositionRulesDTO


  • public class PositionRulesDTO
    extends Object
    Position rules for PositionDTO. It is used to know when cassandre should close a position. Supported rules : - Stop gain in percentage. - Stop loss in percentage.
    • Constructor Detail

      • PositionRulesDTO

        protected PositionRulesDTO​(PositionRulesDTO.Builder builder)
        Builder constructor.
        Parameters:
        builder - Builder.
    • Method Detail

      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • isStopGainPercentageSet

        public boolean isStopGainPercentageSet()
        Stop gain percentage has been set.
      • getStopGainPercentage

        public Float getStopGainPercentage()
        Stop gain percentage.
      • isStopLossPercentageSet

        public boolean isStopLossPercentageSet()
        Stop loss percentage has been set.
      • getStopLossPercentage

        public Float getStopLossPercentage()
        Stop loss percentage.