Class Position


  • @Entity
    public class Position
    extends Object
    Position (used to save data between restarts).
    • Constructor Detail

      • Position

        public Position()
    • Method Detail

      • getId

        public long getId()
        Getter id.
        Returns:
        id
      • setId

        public void setId​(long newId)
        Setter id.
        Parameters:
        newId - the id to set
      • getStopGainPercentageRule

        public Float getStopGainPercentageRule()
        Getter rulesStopGainPercentage.
        Returns:
        rulesStopGainPercentage
      • setStopGainPercentageRule

        public void setStopGainPercentageRule​(Float newRulesStopGainPercentage)
        Setter rulesStopGainPercentage.
        Parameters:
        newRulesStopGainPercentage - the rulesStopGainPercentage to set
      • getStopLossPercentageRule

        public Float getStopLossPercentageRule()
        Getter rulesStopLossPercentage.
        Returns:
        rulesStopLossPercentage
      • setStopLossPercentageRule

        public void setStopLossPercentageRule​(Float newRulesStopLossPercentage)
        Setter rulesStopLossPercentage.
        Parameters:
        newRulesStopLossPercentage - the rulesStopLossPercentage to set
      • getOpenOrderId

        public String getOpenOrderId()
        Getter openOrderId.
        Returns:
        openOrderId
      • setOpenOrderId

        public void setOpenOrderId​(String newOpenOrderId)
        Setter openOrderId.
        Parameters:
        newOpenOrderId - the openOrderId to set
      • getCloseOrderId

        public String getCloseOrderId()
        Getter closeOrderId.
        Returns:
        closeOrderId
      • setCloseOrderId

        public void setCloseOrderId​(String newCloseOrderId)
        Setter closeOrderId.
        Parameters:
        newCloseOrderId - the closeOrderId to set