Record Class OrderCancelReplaceRequest
java.lang.Object
java.lang.Record
com.quantfinlib.fix.OrderCancelReplaceRequest
public record OrderCancelReplaceRequest(String clOrdId, String origClOrdId, String symbol, Side side, long quantity, char ordType, double price, char timeInForce)
extends Record
Typed view of a FIX OrderCancelReplaceRequest (35=G) — amend a working
order's quantity and/or price.
price is NaN for market (40=1).-
Constructor Summary
ConstructorsConstructorDescriptionOrderCancelReplaceRequest(String clOrdId, String origClOrdId, String symbol, Side side, long quantity, char ordType, double price, char timeInForce) Creates an instance of aOrderCancelReplaceRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionclOrdId()Returns the value of theclOrdIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisMarket()charordType()Returns the value of theordTyperecord component.Returns the value of theorigClOrdIdrecord component.doubleprice()Returns the value of thepricerecord component.longquantity()Returns the value of thequantityrecord component.side()Returns the value of thesiderecord component.symbol()Returns the value of thesymbolrecord component.charReturns the value of thetimeInForcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OrderCancelReplaceRequest
public OrderCancelReplaceRequest(String clOrdId, String origClOrdId, String symbol, Side side, long quantity, char ordType, double price, char timeInForce) Creates an instance of aOrderCancelReplaceRequestrecord class.- Parameters:
clOrdId- the value for theclOrdIdrecord componentorigClOrdId- the value for theorigClOrdIdrecord componentsymbol- the value for thesymbolrecord componentside- the value for thesiderecord componentquantity- the value for thequantityrecord componentordType- the value for theordTyperecord componentprice- the value for thepricerecord componenttimeInForce- the value for thetimeInForcerecord component
-
-
Method Details
-
isMarket
public boolean isMarket() -
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. -
clOrdId
Returns the value of theclOrdIdrecord component.- Returns:
- the value of the
clOrdIdrecord component
-
origClOrdId
Returns the value of theorigClOrdIdrecord component.- Returns:
- the value of the
origClOrdIdrecord 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
-
quantity
public long quantity()Returns the value of thequantityrecord component.- Returns:
- the value of the
quantityrecord component
-
ordType
public char ordType()Returns the value of theordTyperecord component.- Returns:
- the value of the
ordTyperecord component
-
price
public double price()Returns the value of thepricerecord component.- Returns:
- the value of the
pricerecord component
-
timeInForce
public char timeInForce()Returns the value of thetimeInForcerecord component.- Returns:
- the value of the
timeInForcerecord component
-