com.wombat.mamda.options
public class MamdaOptionContract extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static char |
EXERCISE_STYLE_AMERICAN |
static char |
EXERCISE_STYLE_CAPPED |
static char |
EXERCISE_STYLE_EUROPEAN |
static char |
EXERCISE_STYLE_UNKNOWN |
static char |
PC_CALL |
static char |
PC_PUT |
static char |
PC_UNKNOWN |
Constructor and Description |
---|
MamdaOptionContract(java.lang.String symbol,
java.lang.String exchange,
java.util.Date expireDate,
double strikePrice,
char putCall)
Constructor from expiration date, strike price, and put/call
indicator.
|
Modifier and Type | Method and Description |
---|---|
void |
addFundamentalHandler(MamdaFundamentalHandler handler)
Add a MamdaFundamentalHandler for handling fundamental updates
to this option contract.
|
void |
addQuoteHandler(MamdaQuoteHandler handler)
Add a MamdaQuoteHandler for handling quote updates to this
option contract.
|
void |
addTradeHandler(MamdaTradeHandler handler)
Add a MamdaTradeHandler for handling trade updates to this
option contract.
|
java.lang.Object |
getCustomObject()
Return the custom object.
|
java.lang.String |
getExchange()
Return the exchange.
|
char |
getExerciseStyle()
Return the exercise style.
|
java.util.Date |
getExpireDate()
Return the expiration date.
|
java.lang.String |
getExpireDateStr()
Return the expiration date as a commonly formatted string (MMMyy).
|
MamdaFundamentalListener |
getFundamentalListener()
Return the current fundamental listener.
|
MamdaFundamentals |
getFundamentalsInfo()
Return the current fundamental fields.
|
boolean |
getInView()
Return whether this contract is in the "view" within the option
chain.
|
long |
getOpenInterest()
Return the open interest.
|
char |
getPutCall()
Return the put/call indicator.
|
MamdaQuoteRecap |
getQuoteInfo()
Return the current quote fields.
|
MamdaQuoteListener |
getQuoteListener()
Return the current quote listener.
|
double |
getStrikePrice()
Return the strike price.
|
java.lang.String |
getSymbol()
Return the OPRA contract symbol.
|
MamdaTradeRecap |
getTradeInfo()
Return the current trade fields.
|
MamdaTradeListener |
getTradeListener()
Return the trade listener.
|
void |
setCustomObject(java.lang.Object object)
Add a custom object to this option contract.
|
void |
setExerciseStyle(char exerciseStyle)
Set the exercise style.
|
void |
setInView(boolean inView)
Set whether this contract is in the "view" within the option
chain.
|
void |
setOpenInterest(long openInterest)
Set the open interest size.
|
public static final char PC_UNKNOWN
public static final char PC_CALL
public static final char PC_PUT
public static final char EXERCISE_STYLE_AMERICAN
public static final char EXERCISE_STYLE_EUROPEAN
public static final char EXERCISE_STYLE_CAPPED
public static final char EXERCISE_STYLE_UNKNOWN
public MamdaOptionContract(java.lang.String symbol, java.lang.String exchange, java.util.Date expireDate, double strikePrice, char putCall)
public void setOpenInterest(long openInterest)
public void setExerciseStyle(char exerciseStyle)
public java.lang.String getSymbol()
public java.lang.String getExchange()
public java.util.Date getExpireDate()
public java.lang.String getExpireDateStr()
public double getStrikePrice()
public char getPutCall()
public long getOpenInterest()
public char getExerciseStyle()
public void addTradeHandler(MamdaTradeHandler handler)
public void addQuoteHandler(MamdaQuoteHandler handler)
public void addFundamentalHandler(MamdaFundamentalHandler handler)
public void setCustomObject(java.lang.Object object)
public MamdaTradeRecap getTradeInfo()
public MamdaQuoteRecap getQuoteInfo()
public MamdaFundamentals getFundamentalsInfo()
public java.lang.Object getCustomObject()
public MamdaTradeListener getTradeListener()
public MamdaQuoteListener getQuoteListener()
public MamdaFundamentalListener getFundamentalListener()
public void setInView(boolean inView)
MamdaOptionChain
public boolean getInView()
MamdaOptionChain
Copyright 2007 Wombat Financial Software, Inc.