Package org.drip.param.quote
Class MultiSided
java.lang.Object
org.drip.param.definition.Quote
org.drip.param.quote.MultiSided
public class MultiSided extends Quote
MultiSided implements the Quote interface, which contains the stubs corresponding to a product
quote. It contains the quote value, quote instant for the different quote sides (bid/ask/mid).
- Module = Product Core Module
- Library = Fixed Income Analytics
- Project = Product Cash Flow, Valuation, Market, Pricing, and Quoting Parameters
- Package = Multi-sided Multi-Measure Ticks Quotes
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description MultiSided(java.lang.String strSide, double dblQuote)
MultiSidedQuote Constructor: Constructs a Quote object from the quote value and the side string.MultiSided(java.lang.String strSide, double dblQuote, double dblSize)
MultiSided Constructor: Constructs a Quote object from the quote size/value and the side string. -
Method Summary
Modifier and Type Method Description boolean
setSide(java.lang.String strSide, double dblQuote, double dblSize)
Set the quote for the specified sidedouble
size(java.lang.String strSide)
Get the quote size for the given sideDateTime
time(java.lang.String strSide)
Get the time of the quotedouble
value(java.lang.String strSide)
Get the quote value for the given sideMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
MultiSided
public MultiSided(java.lang.String strSide, double dblQuote) throws java.lang.ExceptionMultiSidedQuote Constructor: Constructs a Quote object from the quote value and the side string.- Parameters:
strSide
- bid/ask/middblQuote
- Quote Value- Throws:
java.lang.Exception
- Thrown on invalid inputs
-
MultiSided
public MultiSided(java.lang.String strSide, double dblQuote, double dblSize) throws java.lang.ExceptionMultiSided Constructor: Constructs a Quote object from the quote size/value and the side string.- Parameters:
strSide
- bid/ask/middblQuote
- Quote ValuedblSize
- Size- Throws:
java.lang.Exception
- Thrown on invalid inputs
-
-
Method Details
-
value
public double value(java.lang.String strSide)Description copied from class:Quote
Get the quote value for the given side -
size
public double size(java.lang.String strSide)Description copied from class:Quote
Get the quote size for the given side -
time
Description copied from class:Quote
Get the time of the quote -
setSide
public boolean setSide(java.lang.String strSide, double dblQuote, double dblSize)Description copied from class:Quote
Set the quote for the specified side
-