T
- The type of option instrument instances.public final class OptionSeries<T> extends Object implements Cloneable, Comparable<OptionSeries<T>>
Modifier and Type | Method and Description |
---|---|
OptionSeries<T> |
clone()
Returns a shall copy of this option series.
|
int |
compareTo(OptionSeries<T> o)
Compares this option series 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 series.
|
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 series.
|
String |
toString()
Returns a string representation of this series.
|
public OptionSeries<T> clone()
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 series.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(OptionSeries<T> o)
compareTo
in interface Comparable<OptionSeries<T>>
o
- another option series to compare with.public boolean equals(Object o)
public int hashCode()
Copyright © 2002–2023 Devexperts LLC. All rights reserved.