org.marketcetera.strategy.util
Class OptionContract

java.lang.Object
  extended by org.marketcetera.strategy.util.OptionContract

@ThreadSafe
public final class OptionContract
extends Object

Represents an option contract and its most recent market data, if available.

Since:
2.0.0
Version:
$Id: OptionContract.java 16154 2012-07-14 16:34:05Z colin $
Author:
Colin DuPlantis

Method Summary
 ExpirationType getExpirationType()
          Get the expirationType value.
 Option getInstrument()
          Gets the option instrument.
 AskEvent getLatestAsk()
          Get the latest ask value.
 BidEvent getLatestBid()
          Get the latest bid value.
 MarketstatEvent getLatestMarketstat()
          Get the latest marketstat value.
 TradeEvent getLatestTrade()
          Get the latest trade value.
 BigDecimal getMultiplier()
          Get the multiplier value.
 String getProviderSymbol()
          Get the providerSymbol value.
 Instrument getUnderlyingInstrument()
          Get the underlyingInstrument value.
 boolean hasDeliverable()
          Get the hasDeliverable value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getUnderlyingInstrument

public Instrument getUnderlyingInstrument()
Get the underlyingInstrument value.

Returns:
an Instrument value

getInstrument

public Option getInstrument()
Gets the option instrument.

Returns:
an Option value

getExpirationType

public ExpirationType getExpirationType()
Get the expirationType value.

Returns:
an ExpirationType value

getMultiplier

public BigDecimal getMultiplier()
Get the multiplier value.

Returns:
a BigDecimal value

hasDeliverable

public boolean hasDeliverable()
Get the hasDeliverable value.

Returns:
a boolean value

getLatestBid

public BidEvent getLatestBid()
Get the latest bid value.

Returns:
a BidEvent value or null

getLatestAsk

public AskEvent getLatestAsk()
Get the latest ask value.

Returns:
an AskEvent value or null

getLatestTrade

public TradeEvent getLatestTrade()
Get the latest trade value.

Returns:
a TradeEvent value or null

getLatestMarketstat

public MarketstatEvent getLatestMarketstat()
Get the latest marketstat value.

Returns:
a MarketstatEvent value or null

getProviderSymbol

public String getProviderSymbol()
Get the providerSymbol value.

Returns:
a String value


Copyright © 2012. All Rights Reserved.