Class DeltaStrike
- java.lang.Object
-
- com.opengamma.strata.market.option.DeltaStrike
-
- All Implemented Interfaces:
Strike
,Serializable
,org.joda.beans.Bean
,org.joda.beans.ImmutableBean
public final class DeltaStrike extends Object implements Strike, org.joda.beans.ImmutableBean, Serializable
A strike based on absolute delta.The absolute delta of a call option, D_c. This is in the range (0,1), where 0.5 is ATM (Delta-Neutral Straddle DNS), D_c > 0.5 are ITM and D_c < 0.5 are OTM options. The absolute delta of a put option is related by D_p = D_c - 1. Since prices are normally quoted for OTM options, D_c < 0.5 will be from calls, while D_c > 0.5 (D_p > -0.5) will be from puts.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DeltaStrike.Meta
The meta-bean forDeltaStrike
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
StrikeType
getType()
Gets the type of the strike.double
getValue()
Gets the value of absolute delta.int
hashCode()
static DeltaStrike.Meta
meta()
The meta-bean forDeltaStrike
.DeltaStrike.Meta
metaBean()
static DeltaStrike
of(double delta)
Obtains an instance ofDelta
with the value of absolute delta.String
toString()
DeltaStrike
withValue(double value)
Creates an new instance of the same strike type with value.
-
-
-
Method Detail
-
of
public static DeltaStrike of(double delta)
Obtains an instance ofDelta
with the value of absolute delta.- Parameters:
delta
- the value of absolute delta- Returns:
- the instance
-
getType
public StrikeType getType()
Description copied from interface:Strike
Gets the type of the strike.
-
withValue
public DeltaStrike withValue(double value)
Description copied from interface:Strike
Creates an new instance of the same strike type with value.
-
meta
public static DeltaStrike.Meta meta()
The meta-bean forDeltaStrike
.- Returns:
- the meta-bean, not null
-
metaBean
public DeltaStrike.Meta metaBean()
- Specified by:
metaBean
in interfaceorg.joda.beans.Bean
-
getValue
public double getValue()
Gets the value of absolute delta.
-
-