|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dxfeed.ipf.option.OptionSerie<T>
T
- The type of option instrument instances.public final class OptionSerie<T>
Series of call and put options with different strike sharing the same attributes of expiration, last trading day, spc, multiplies, etc.
Method Summary | |
---|---|
OptionSerie<T> |
clone()
Returns a shall copy of this option serie. |
int |
compareTo(OptionSerie<T> o)
Compares this option serie to another one by its attributes. |
boolean |
equals(Object o)
Indicates whether some other object is equal to this option series by its attributes. |
String |
getAdditionalUnderlyings()
Returns additional underlyings for options, including additional cash. |
SortedMap<Double,T> |
getCalls()
Returns a sorted map of all calls from strike to a corresponding option instrument. |
String |
getCFI()
Returns Classification of Financial Instruments code of this option serie. |
int |
getExpiration()
Returns day id of expiration. |
String |
getExpirationStyle()
Returns expiration cycle style, such as “Weeklys”, “Quarterlys”. |
int |
getLastTrade()
Returns day id of last trading day. |
String |
getMMY()
Returns maturity month-year as provided for corresponding FIX tag (200). |
double |
getMultiplier()
Returns market value multiplier. |
List<Double> |
getNStrikesAround(int n,
double strike)
Returns n strikes the are centered around a specified strike value. |
String |
getOptionType()
Returns type of option. |
SortedMap<Double,T> |
getPuts()
Returns a sorted map of all puts from strike to a corresponding option instrument. |
String |
getSettlementStyle()
Returns settlement price determination style, such as “Open”, “Close”. |
double |
getSPC()
Returns shares per contract for options. |
List<Double> |
getStrikes()
Returns a list of all strikes in ascending order. |
int |
hashCode()
Returns a hash code value for this option serie. |
String |
toString()
Returns a string representation of this serie. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public OptionSerie<T> clone()
clone
in class Object
public int getExpiration()
DayUtil.getDayIdByYearMonthDay
(20090117).
public int getLastTrade()
DayUtil.getDayIdByYearMonthDay
(20090116).
public double getMultiplier()
public double getSPC()
public String getAdditionalUnderlyings()
<VALUE> ::= <empty> | <LIST> <LIST> ::= <AU> | <AU> <semicolon> <space> <LIST> <AU> ::= <UNDERLYING> <space> <SPC>the list shall be sorted by <UNDERLYING>. Example: “SE 50”, “FIS 53; US$ 45.46”.
public String getMMY()
public String getOptionType()
public String getExpirationStyle()
public String getSettlementStyle()
public String getCFI()
calls
and getPuts()
puts} are stored in a serie.
public SortedMap<Double,T> getCalls()
public SortedMap<Double,T> getPuts()
public List<Double> getStrikes()
public List<Double> getNStrikesAround(int n, double strike)
n
- the maximal number of strikes to return.strike
- the center strike.
IllegalArgumentException
- when n < 0.public int compareTo(OptionSerie<T> o)
compareTo
in interface Comparable<OptionSerie<T>>
o
- another option serie to compare with.
public boolean equals(Object o)
equals
in class Object
o
- another object to compare with.public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |