Classes Files

com::wombat::mamda::options::MamdaOptionContract

More…

Public Functions

  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()

Public Attributes

  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

Detailed Description

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.

Public Functions Documentation

function MamdaOptionContract

inline MamdaOptionContract(
    String symbol,
    String exchange,
    Date expireDate,
    double strikePrice,
    char putCall
)

Constructor from expiration date, strike price, and put/call indicator.

function setOpenInterest

inline void setOpenInterest(
    long openInterest
)

Set the open interest size.

function setExerciseStyle

inline void setExerciseStyle(
    char exerciseStyle
)

Set the exercise style.

function getSymbol

inline String getSymbol()

Return the OPRA contract symbol.

function getExchange

inline String getExchange()

Return the exchange.

function getExpireDate

inline Date getExpireDate()

Return the expiration date.

function getExpireDateStr

inline String getExpireDateStr()

Return the expiration date as a commonly formatted string (MMMyy).

function getStrikePrice

inline double getStrikePrice()

Return the strike price.

function getPutCall

inline char getPutCall()

Return the put/call indicator.

function getOpenInterest

inline long getOpenInterest()

Return the open interest.

function getExerciseStyle

inline char getExerciseStyle()

Return the exercise style.

function addTradeHandler

inline void addTradeHandler(
    MamdaTradeHandler handler
)

Add a MamdaTradeHandler for handling trade updates to this option contract.

function addQuoteHandler

inline void addQuoteHandler(
    MamdaQuoteHandler handler
)

Add a MamdaQuoteHandler for handling quote updates to this option contract.

function addFundamentalHandler

inline void addFundamentalHandler(
    MamdaFundamentalHandler handler
)

Add a MamdaFundamentalHandler for handling fundamental updates to this option contract.

function setCustomObject

inline void setCustomObject(
    Object object
)

Add a custom object to this option contract. Such an object might contain customer per-contract data.

function getTradeInfo

inline MamdaTradeRecap getTradeInfo()

Return the current trade fields.

function getQuoteInfo

inline MamdaQuoteRecap getQuoteInfo()

Return the current quote fields.

function getFundamentalsInfo

inline MamdaFundamentals getFundamentalsInfo()

Return the current fundamental fields.

function getCustomObject

inline Object getCustomObject()

Return the custom object.

function getTradeListener

inline MamdaTradeListener getTradeListener()

Return the trade listener.

function getQuoteListener

inline MamdaQuoteListener getQuoteListener()

Return the current quote listener.

function getFundamentalListener

inline MamdaFundamentalListener getFundamentalListener()

Return the current fundamental listener.

function setInView

inline void setInView(
    boolean inView
)

See: MamdaOptionChain

Set whether this contract is in the “view” within the option chain.

function getInView

inline boolean getInView()

See: MamdaOptionChain

Return whether this contract is in the “view” within the option chain.

Public Attributes Documentation

variable PC_UNKNOWN

static final char PC_UNKNOWN = ' ';

variable PC_CALL

static final char PC_CALL = 'C';

variable PC_PUT

static final char PC_PUT = 'P';

variable EXERCISE_STYLE_AMERICAN

static final char EXERCISE_STYLE_AMERICAN = 'A';

variable EXERCISE_STYLE_EUROPEAN

static final char EXERCISE_STYLE_EUROPEAN = 'E';

variable EXERCISE_STYLE_CAPPED

static final char EXERCISE_STYLE_CAPPED = 'C';

variable EXERCISE_STYLE_UNKNOWN

static final char EXERCISE_STYLE_UNKNOWN = 'Z';

Updated on 2023-03-31 at 15:30:37 +0100