Class PositionRulesDTO


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

      • PositionRulesDTO

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

      • isStopGainPercentageSet

        public final boolean isStopGainPercentageSet()
        Getter for stopGainPercentageSet.
        Returns:
        stopGainPercentageSet
      • getStopGainPercentage

        public final float getStopGainPercentage()
        Getter for stopGainPercentage.
        Returns:
        stopGainPercentage
      • isStopLossPercentageSet

        public final boolean isStopLossPercentageSet()
        Getter for stopLossPercentageSet.
        Returns:
        stopLossPercentageSet
      • getStopLossPercentage

        public final float getStopLossPercentage()
        Getter for stopLossPercentage.
        Returns:
        stopLossPercentage