|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.otfeed.command.OptionChainWithSnapshotCommand
public final class OptionChainWithSnapshotCommand
Synthetic command that requests snapshot and stream data.
Equivalent to issuing OptionChainSnapshotCommand, followed by
OptionChainCommand.
quote,
trade,
marker-maker quote, and
bbo events.
| Constructor Summary | |
|---|---|
OptionChainWithSnapshotCommand()
Default constructor. |
|
OptionChainWithSnapshotCommand(java.lang.String exchangeCode,
java.lang.String symbolCode,
MonthAndYear expiration,
PriceRange strike)
Creates new command, initializing all its properties, except volumeStyle |
|
OptionChainWithSnapshotCommand(java.lang.String exchangeCode,
java.lang.String symbolCode,
MonthAndYear expiration,
PriceRange strike,
VolumeStyleEnum volumeStyle)
Creates new command, initializing all its properties, except delegates. |
|
| Method Summary | |
|---|---|
IDataDelegate<OTBBO> |
getBboDelegate()
|
ICompletionDelegate |
getCompletionDelegate()
Option delegate to watch stream completion event. |
java.lang.String |
getExchangeCode()
Exchange code. |
MonthAndYear |
getExpiration()
Option expiration date (month and year). |
IDataDelegate<OTMMQuote> |
getMmQuoteDelegate()
|
IDataDelegate<OTQuote> |
getQuoteDelegate()
|
PriceRange |
getStrike()
Price range for the option strike. |
java.lang.String |
getSymbolCode()
Symbol code. |
IDataDelegate<OTTrade> |
getTradeDelegate()
|
VolumeStyleEnum |
getVolumeStyle()
Specifies whether quote events will contain individual volume, or compound volume. |
void |
setBboDelegate(IDataDelegate<OTBBO> val)
|
void |
setCompletionDelegate(ICompletionDelegate val)
Sets completion delegate. |
void |
setExchangeCode(java.lang.String exchangeCode)
Sets the exchange code. |
void |
setExpiration(MonthAndYear val)
Sets option expiration date. |
void |
setMmQuoteDelegate(IDataDelegate<OTMMQuote> val)
|
void |
setQuoteDelegate(IDataDelegate<OTQuote> val)
|
void |
setStrike(PriceRange val)
Sets option strike price range. |
void |
setSymbolCode(java.lang.String val)
Sets symbol code. |
void |
setTradeDelegate(IDataDelegate<OTTrade> val)
|
void |
setVolumeStyle(VolumeStyleEnum val)
Sets volume reporting style. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OptionChainWithSnapshotCommand(java.lang.String exchangeCode,
java.lang.String symbolCode,
MonthAndYear expiration,
PriceRange strike,
VolumeStyleEnum volumeStyle)
exchangeCode - exchange code.symbolCode - symbol code.expiration - expiration.strike - strike.volumeStyle - volume reporting style.public OptionChainWithSnapshotCommand()
expiration property to
its default value of null (meaning "any").
Initializes strike property to
its default value of null (meaning "any").
Initializes volumeStyle
property to COMPOUND.
All other properties must be set explicitly before using
this command object.
public OptionChainWithSnapshotCommand(java.lang.String exchangeCode,
java.lang.String symbolCode,
MonthAndYear expiration,
PriceRange strike)
volumeStyle
property, which defaults to COMPOUND.
- Parameters:
exchangeCode - exchange code.symbolCode - symbol code.expiration - expiration.strike - strike.
| Method Detail |
|---|
public MonthAndYear getExpiration()
public void setExpiration(MonthAndYear val)
val - option expiration date.public PriceRange getStrike()
public void setStrike(PriceRange val)
val - strike price range.public final void setVolumeStyle(VolumeStyleEnum val)
val - volume style.public IDataDelegate<OTQuote> getQuoteDelegate()
public void setQuoteDelegate(IDataDelegate<OTQuote> val)
public IDataDelegate<OTTrade> getTradeDelegate()
public void setTradeDelegate(IDataDelegate<OTTrade> val)
public IDataDelegate<OTMMQuote> getMmQuoteDelegate()
public void setMmQuoteDelegate(IDataDelegate<OTMMQuote> val)
public IDataDelegate<OTBBO> getBboDelegate()
public void setBboDelegate(IDataDelegate<OTBBO> val)
public final VolumeStyleEnum getVolumeStyle()
COMPOUND volume is requested.
public final java.lang.String getExchangeCode()
public final void setExchangeCode(java.lang.String exchangeCode)
exchangeCode - exchange code.public final java.lang.String getSymbolCode()
public final void setSymbolCode(java.lang.String val)
val - symbol code.public ICompletionDelegate getCompletionDelegate()
public void setCompletionDelegate(ICompletionDelegate val)
val - delegate.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||