Name | |
---|---|
MamdaOptionContract(String symbol, String exchange, Date expireDate, double strikePrice, char putCall) | |
void | setOpenInterest(long openInterest) |
void | setExerciseStyle(char exerciseStyle) |
String | getSymbol() |
String | getExchange() |
Date | getExpireDate() |
String | getExpireDateStr() |
double | getStrikePrice() |
char | getPutCall() |
long | getOpenInterest() |
char | getExerciseStyle() |
void | addTradeHandler(MamdaTradeHandler handler) |
void | addQuoteHandler(MamdaQuoteHandler handler) |
void | addFundamentalHandler(MamdaFundamentalHandler handler) |
void | setCustomObject(Object object) |
MamdaTradeRecap | getTradeInfo() |
MamdaQuoteRecap | getQuoteInfo() |
MamdaFundamentals | getFundamentalsInfo() |
Object | getCustomObject() |
MamdaTradeListener | getTradeListener() |
MamdaQuoteListener | getQuoteListener() |
MamdaFundamentalListener | getFundamentalListener() |
void | setInView(boolean inView) |
boolean | getInView() |
Name | |
---|---|
final char | PC_UNKNOWN |
final char | PC_CALL |
final char | PC_PUT |
final char | EXERCISE_STYLE_AMERICAN |
final char | EXERCISE_STYLE_EUROPEAN |
final char | EXERCISE_STYLE_CAPPED |
final char | EXERCISE_STYLE_UNKNOWN |
class com::wombat::mamda::options::MamdaOptionContract;
A class that represents a single option contract. Instances of this object are typically created by the MamdaOptionChainListener. Applications may attach a custom object to each instance of MamdaOptionContract.
Note: User applications can be notified of creation of MamdaOptionContract instances via the MamdaOptionChainListener.onOptionContractCreate() method. 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 individual contracts.
inline MamdaOptionContract(
String symbol,
String exchange,
Date expireDate,
double strikePrice,
char putCall
)
Constructor from expiration date, strike price, and put/call indicator.
inline void setOpenInterest(
long openInterest
)
Set the open interest size.
inline void setExerciseStyle(
char exerciseStyle
)
Set the exercise style.
inline String getSymbol()
Return the OPRA contract symbol.
inline String getExchange()
Return the exchange.
inline Date getExpireDate()
Return the expiration date.
inline String getExpireDateStr()
Return the expiration date as a commonly formatted string (MMMyy).
inline double getStrikePrice()
Return the strike price.
inline char getPutCall()
Return the put/call indicator.
inline long getOpenInterest()
Return the open interest.
inline char getExerciseStyle()
Return the exercise style.
inline void addTradeHandler(
MamdaTradeHandler handler
)
Add a MamdaTradeHandler for handling trade updates to this option contract.
inline void addQuoteHandler(
MamdaQuoteHandler handler
)
Add a MamdaQuoteHandler for handling quote updates to this option contract.
inline void addFundamentalHandler(
MamdaFundamentalHandler handler
)
Add a MamdaFundamentalHandler for handling fundamental updates to this option contract.
inline void setCustomObject(
Object object
)
Add a custom object to this option contract. Such an object might contain customer per-contract data.
inline MamdaTradeRecap getTradeInfo()
Return the current trade fields.
inline MamdaQuoteRecap getQuoteInfo()
Return the current quote fields.
inline MamdaFundamentals getFundamentalsInfo()
Return the current fundamental fields.
inline Object getCustomObject()
Return the custom object.
inline MamdaTradeListener getTradeListener()
Return the trade listener.
inline MamdaQuoteListener getQuoteListener()
Return the current quote listener.
inline MamdaFundamentalListener getFundamentalListener()
Return the current fundamental listener.
inline void setInView(
boolean inView
)
See: MamdaOptionChain
Set whether this contract is in the “view” within the option chain.
inline boolean getInView()
See: MamdaOptionChain
Return whether this contract is in the “view” within the option chain.
static final char PC_UNKNOWN = ' ';
static final char PC_CALL = 'C';
static final char PC_PUT = 'P';
static final char EXERCISE_STYLE_AMERICAN = 'A';
static final char EXERCISE_STYLE_EUROPEAN = 'E';
static final char EXERCISE_STYLE_CAPPED = 'C';
static final char EXERCISE_STYLE_UNKNOWN = 'Z';
Updated on 2023-03-31 at 15:30:37 +0100