Record Class ExecutionReport
java.lang.Object
java.lang.Record
com.quantfinlib.fix.ExecutionReport
public record ExecutionReport(String orderId, String execId, char execType, char ordStatus, String clOrdId, String symbol, Side side, double lastQty, double lastPrice, double cumQty, double leavesQty, double avgPrice)
extends Record
Typed view of a FIX ExecutionReport (35=8) — the venue's answer to an
order: acknowledgement, fill, or rejection.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final charstatic final charstatic final charstatic final charstatic final charstatic final charstatic final charstatic final charstatic final charstatic final charstatic final char -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ExecutionReportaccepted(NewOrderSingle order, String orderId, String execId) Venue-side convenience: acknowledge a new order.doubleavgPrice()Returns the value of theavgPricerecord component.static ExecutionReportcanceled(OrderCancelRequest request, String orderId, String execId, double cumQty) Venue-side convenience: confirm a cancel (cumQtyalready executed).clOrdId()Returns the value of theclOrdIdrecord component.doublecumQty()Returns the value of thecumQtyrecord component.final booleanIndicates whether some other object is "equal to" this one.execId()Returns the value of theexecIdrecord component.charexecType()Returns the value of theexecTyperecord component.static ExecutionReportfilled(NewOrderSingle order, String orderId, String execId, double fillPrice) Venue-side convenience: full fill at one price.final inthashCode()Returns a hash code value for this object.booleanisFill()doubleReturns the value of thelastPricerecord component.doublelastQty()Returns the value of thelastQtyrecord component.doubleReturns the value of theleavesQtyrecord component.orderId()Returns the value of theorderIdrecord component.charReturns the value of theordStatusrecord component.static ExecutionReportreplaced(OrderCancelReplaceRequest request, String orderId, String execId, double cumQty) Venue-side convenience: confirm a cancel/replace with the new working quantity.side()Returns the value of thesiderecord component.symbol()Returns the value of thesymbolrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
EXEC_TYPE_NEW
public static final char EXEC_TYPE_NEW- See Also:
-
EXEC_TYPE_CANCELED
public static final char EXEC_TYPE_CANCELED- See Also:
-
EXEC_TYPE_REPLACED
public static final char EXEC_TYPE_REPLACED- See Also:
-
EXEC_TYPE_TRADE
public static final char EXEC_TYPE_TRADE- See Also:
-
EXEC_TYPE_REJECTED
public static final char EXEC_TYPE_REJECTED- See Also:
-
ORD_STATUS_NEW
public static final char ORD_STATUS_NEW- See Also:
-
ORD_STATUS_PARTIALLY_FILLED
public static final char ORD_STATUS_PARTIALLY_FILLED- See Also:
-
ORD_STATUS_FILLED
public static final char ORD_STATUS_FILLED- See Also:
-
ORD_STATUS_CANCELED
public static final char ORD_STATUS_CANCELED- See Also:
-
ORD_STATUS_REPLACED
public static final char ORD_STATUS_REPLACED- See Also:
-
ORD_STATUS_REJECTED
public static final char ORD_STATUS_REJECTED- See Also:
-
-
Constructor Details
-
ExecutionReport
public ExecutionReport(String orderId, String execId, char execType, char ordStatus, String clOrdId, String symbol, Side side, double lastQty, double lastPrice, double cumQty, double leavesQty, double avgPrice) Creates an instance of aExecutionReportrecord class.- Parameters:
orderId- the value for theorderIdrecord componentexecId- the value for theexecIdrecord componentexecType- the value for theexecTyperecord componentordStatus- the value for theordStatusrecord componentclOrdId- the value for theclOrdIdrecord componentsymbol- the value for thesymbolrecord componentside- the value for thesiderecord componentlastQty- the value for thelastQtyrecord componentlastPrice- the value for thelastPricerecord componentcumQty- the value for thecumQtyrecord componentleavesQty- the value for theleavesQtyrecord componentavgPrice- the value for theavgPricerecord component
-
-
Method Details
-
isFill
public boolean isFill() -
accepted
Venue-side convenience: acknowledge a new order. -
filled
public static ExecutionReport filled(NewOrderSingle order, String orderId, String execId, double fillPrice) Venue-side convenience: full fill at one price. -
canceled
public static ExecutionReport canceled(OrderCancelRequest request, String orderId, String execId, double cumQty) Venue-side convenience: confirm a cancel (cumQtyalready executed). -
replaced
public static ExecutionReport replaced(OrderCancelReplaceRequest request, String orderId, String execId, double cumQty) Venue-side convenience: confirm a cancel/replace with the new working quantity. -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
orderId
Returns the value of theorderIdrecord component.- Returns:
- the value of the
orderIdrecord component
-
execId
Returns the value of theexecIdrecord component.- Returns:
- the value of the
execIdrecord component
-
execType
public char execType()Returns the value of theexecTyperecord component.- Returns:
- the value of the
execTyperecord component
-
ordStatus
public char ordStatus()Returns the value of theordStatusrecord component.- Returns:
- the value of the
ordStatusrecord component
-
clOrdId
Returns the value of theclOrdIdrecord component.- Returns:
- the value of the
clOrdIdrecord component
-
symbol
Returns the value of thesymbolrecord component.- Returns:
- the value of the
symbolrecord component
-
side
Returns the value of thesiderecord component.- Returns:
- the value of the
siderecord component
-
lastQty
public double lastQty()Returns the value of thelastQtyrecord component.- Returns:
- the value of the
lastQtyrecord component
-
lastPrice
public double lastPrice()Returns the value of thelastPricerecord component.- Returns:
- the value of the
lastPricerecord component
-
cumQty
public double cumQty()Returns the value of thecumQtyrecord component.- Returns:
- the value of the
cumQtyrecord component
-
leavesQty
public double leavesQty()Returns the value of theleavesQtyrecord component.- Returns:
- the value of the
leavesQtyrecord component
-
avgPrice
public double avgPrice()Returns the value of theavgPricerecord component.- Returns:
- the value of the
avgPricerecord component
-