Package com.wombat.mamda.options
Class MamdaOptionUnderlying
- java.lang.Object
-
- com.wombat.mamda.options.MamdaOptionUnderlying
-
public class MamdaOptionUnderlying extends java.lang.Object
A class that represents the underlying for an option chain. Instances of this object are typically created by the MamdaOptionChain. Applications may attach a custom object to each instance of MamdaOptionUnderlying. Note: It is possible to provide individual MamdaTradeHandler and MamdaQuoteHandler handlers for trades and quotes, even though the MamdaOptionChainHandler also provides a general callback interface for updates to the underlying.
-
-
Constructor Summary
Constructors Constructor Description MamdaOptionUnderlying()
Constructor from expiration date, strike price, and put/call indicator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addQuoteHandler(MamdaQuoteHandler handler)
Add a MamdaQuoteHandler for handling quote updates to this underlying.void
addTradeHandler(MamdaTradeHandler handler)
Add a MamdaTradeHandler for handling trade updates to this underlying.java.lang.Object
getCustomObject()
Return the custom object.MamdaQuoteRecap
getQuoteInfo()
Return the current quote fields.MamdaTradeRecap
getTradeInfo()
Return the current trade fields.void
setCustomObject(java.lang.Object object)
Add a custom object to this option underlying.
-
-
-
Method Detail
-
addTradeHandler
public void addTradeHandler(MamdaTradeHandler handler)
Add a MamdaTradeHandler for handling trade updates to this underlying.
-
addQuoteHandler
public void addQuoteHandler(MamdaQuoteHandler handler)
Add a MamdaQuoteHandler for handling quote updates to this underlying.
-
setCustomObject
public void setCustomObject(java.lang.Object object)
Add a custom object to this option underlying. Such an object might contain customer data for the underlying.
-
getTradeInfo
public MamdaTradeRecap getTradeInfo()
Return the current trade fields.
-
getQuoteInfo
public MamdaQuoteRecap getQuoteInfo()
Return the current quote fields.
-
getCustomObject
public java.lang.Object getCustomObject()
Return the custom object.
-
-