Record Class NewOrderSingle
java.lang.Object
java.lang.Record
com.quantfinlib.fix.NewOrderSingle
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final charstatic final charstatic final charstatic final char -
Constructor Summary
ConstructorsConstructorDescriptionNewOrderSingle(String clOrdId, String symbol, Side side, long quantity, char ordType, double price, char timeInForce) Creates an instance of aNewOrderSinglerecord 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.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.
-
Field Details
-
ORD_TYPE_MARKET
public static final char ORD_TYPE_MARKET- See Also:
-
ORD_TYPE_LIMIT
public static final char ORD_TYPE_LIMIT- See Also:
-
TIF_DAY
public static final char TIF_DAY- See Also:
-
TIF_IOC
public static final char TIF_IOC- See Also:
-
-
Constructor Details
-
NewOrderSingle
public NewOrderSingle(String clOrdId, String symbol, Side side, long quantity, char ordType, double price, char timeInForce) Creates an instance of aNewOrderSinglerecord class.- Parameters:
clOrdId- the value for theclOrdIdrecord 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
-
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
-