Class KunaOrder


  • public class KunaOrder
    extends Object
    Order of crypto currency. Instances of this type are immutable, constructed with a dedicated Builder implementation.
    Author:
    Dat Bui
    • Method Detail

      • builder

        public static KunaOrder.Builder builder()
        Creates new builder.
        Returns:
        builder
      • getId

        public int getId()
        Returns order id.
        Returns:
        order id
      • getSide

        public KunaSide getSide()
        Returns always "sell".
        Returns:
        order side
      • getOrderType

        public KunaOrderType getOrderType()
        Returns order type — limit or market.
        Returns:
        order type
      • getPrice

        public BigDecimal getPrice()
        Price price for 1 unit of a crypto currency.
        Returns:
        price
      • getAveragePrice

        public BigDecimal getAveragePrice()
        Returns the average trade price for the order.
        Returns:
        average price
      • getState

        public String getState()
        Returns order state — always wait.
        Returns:
        order state
      • getMarket

        public String getMarket()
        Retruns market ID.
        Returns:
        market ID
      • getCreatedAt

        public Date getCreatedAt()
        Retruns the time of placing the order.
        Returns:
        order place time
      • getVolume

        public BigDecimal getVolume()
        Retuns volume of trading in crypto currency.
        Returns:
        trading volume
      • getRemainingVolume

        public BigDecimal getRemainingVolume()
        Returns unfilled amount of crypto currency.
        Returns:
        unfilled amount
      • getExecutedVolume

        public BigDecimal getExecutedVolume()
        Returns sold amount of crypto currency.
        Returns:
        sold amount
      • getTradesCount

        public int getTradesCount()