Record Class PreTradeLimitChecker.OrderRequest
java.lang.Object
java.lang.Record
com.quantfinlib.risk.PreTradeLimitChecker.OrderRequest
- Enclosing class:
PreTradeLimitChecker
-
Constructor Summary
ConstructorsConstructorDescriptionOrderRequest(String symbol, Side side, long quantity, double price, String counterparty) Creates an instance of aOrderRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecounterpartyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.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.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OrderRequest
Creates an instance of aOrderRequestrecord class.- Parameters:
symbol- the value for thesymbolrecord componentside- the value for thesiderecord componentquantity- the value for thequantityrecord componentprice- the value for thepricerecord componentcounterparty- the value for thecounterpartyrecord component
-
-
Method Details
-
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. -
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
-
price
public double price()Returns the value of thepricerecord component.- Returns:
- the value of the
pricerecord component
-
counterparty
Returns the value of thecounterpartyrecord component.- Returns:
- the value of the
counterpartyrecord component
-