All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.scalecube.examples.orderbook.service.engine.events.MatchOrder Maven / Gradle / Ivy

package io.scalecube.examples.orderbook.service.engine.events;

public class MatchOrder {
  long restingOrderId;
  long incomingOrderId;
  Side incomingSide;
  long price;
  long executedQuantity;
  long remainingQuantity;

  public MatchOrder() {}

  public MatchOrder(long restingOrderId,
      long incomingOrderId,
      Side incomingSide,
      long price,
      long executedQuantity,
      long remainingQuantity) {

    this.restingOrderId = restingOrderId;
    this.incomingOrderId = incomingOrderId;
    this.incomingSide = incomingSide;
    this.price = price;
    this.executedQuantity = executedQuantity;
    this.remainingQuantity = remainingQuantity;
  }

  public long restingOrderId() {
    return restingOrderId;
  }

  public long incomingOrderId() {
    return incomingOrderId;
  }

  public Side incomingSide() {
    return incomingSide;
  }

  public long price() {
    return price;
  }

  public long executedQuantity() {
    return executedQuantity;
  }

  public long remainingQuantity() {
    return remainingQuantity;
  }

  @Override
  public String toString() {
    return "Match [restingOrderId=" + restingOrderId + ", incomingOrderId=" + incomingOrderId + ", incomingSide="
        + incomingSide + ", price=" + price + ", executedQuantity=" + executedQuantity + ", remainingQuantity="
        + remainingQuantity + "]";
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy