Class Position


  • @Entity
    public class Position
    extends BaseDomain
    Position.
    • Constructor Detail

      • Position

        public Position()
    • Method Detail

      • getId

        public Long getId()
        Technical ID.
      • getPositionId

        public Long getPositionId()
        An identifier that uniquely identifies the position.
      • getStrategy

        public Strategy getStrategy()
        The strategy that created the position.
      • getCurrencyPair

        public String getCurrencyPair()
        The currency-pair.
      • getAmount

        public CurrencyAmount getAmount()
        Amount that was ordered.
      • getStopGainPercentageRule

        public Float getStopGainPercentageRule()
        Position rules - stop gain percentage.
      • getStopLossPercentageRule

        public Float getStopLossPercentageRule()
        Position rules - stop loss percentage.
      • getOpeningOrderId

        public String getOpeningOrderId()
        The order id created to open the position.
      • getOpeningOrder

        public Order getOpeningOrder()
        The order created to open the position.
      • getClosingOrderId

        public String getClosingOrderId()
        The order id created to open the position.
      • getClosingOrder

        public Order getClosingOrder()
        The order created to close the position.
      • getLowestGainPrice

        public CurrencyAmount getLowestGainPrice()
        Price of lowest gain reached by this position.
      • getHighestGainPrice

        public CurrencyAmount getHighestGainPrice()
        Price of highest gain reached by this position.
      • getLatestGainPrice

        public CurrencyAmount getLatestGainPrice()
        Price of latest gain price for this position.
      • setId

        public void setId​(Long id)
        Technical ID.
      • setPositionId

        public void setPositionId​(Long positionId)
        An identifier that uniquely identifies the position.
      • setStrategy

        public void setStrategy​(Strategy strategy)
        The strategy that created the position.
      • setCurrencyPair

        public void setCurrencyPair​(String currencyPair)
        The currency-pair.
      • setAmount

        public void setAmount​(CurrencyAmount amount)
        Amount that was ordered.
      • setStopGainPercentageRule

        public void setStopGainPercentageRule​(Float stopGainPercentageRule)
        Position rules - stop gain percentage.
      • setStopLossPercentageRule

        public void setStopLossPercentageRule​(Float stopLossPercentageRule)
        Position rules - stop loss percentage.
      • setOpeningOrderId

        public void setOpeningOrderId​(String openingOrderId)
        The order id created to open the position.
      • setOpeningOrder

        public void setOpeningOrder​(Order openingOrder)
        The order created to open the position.
      • setClosingOrderId

        public void setClosingOrderId​(String closingOrderId)
        The order id created to open the position.
      • setClosingOrder

        public void setClosingOrder​(Order closingOrder)
        The order created to close the position.
      • setLowestGainPrice

        public void setLowestGainPrice​(CurrencyAmount lowestGainPrice)
        Price of lowest gain reached by this position.
      • setHighestGainPrice

        public void setHighestGainPrice​(CurrencyAmount highestGainPrice)
        Price of highest gain reached by this position.
      • setLatestGainPrice

        public void setLatestGainPrice​(CurrencyAmount latestGainPrice)
        Price of latest gain price for this position.