Class MultiAssetOptionResults
- Namespace
- NanoQL.Instruments
- Assembly
- NanoQL.dll
The results of a MultiAssetOption's engine: the instrument's results and QuantLib's Greeks, each null where the engine doesn't compute it.
public record MultiAssetOptionResults : InstrumentResults, IEquatable<InstrumentResults>, IEquatable<MultiAssetOptionResults>
- Inheritance
-
MultiAssetOptionResults
- Implements
- Derived
- Inherited Members
Remarks
An extension point, as in QuantLib's results class: the results of options derived from
MultiAssetOption derive from it (Margrabe's option adds its two deltas and gammas). QuantLib's
Greeks are its members.
Where QuantLib's option throws "<greek> not provided" on reading a Greek its engine left null, the member is null and the caller checks it, as InstrumentResults documents for every result.
Constructors
MultiAssetOptionResults()
public MultiAssetOptionResults()
MultiAssetOptionResults(MultiAssetOptionResults)
protected MultiAssetOptionResults(MultiAssetOptionResults original)
Parameters
originalMultiAssetOptionResults
Properties
Delta
Gets the sensitivity to the spot.
public double? Delta { get; init; }
Property Value
DividendRho
Gets the sensitivity to the dividend yield.
public double? DividendRho { get; init; }
Property Value
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Gamma
Gets the second-order sensitivity to the spot.
public double? Gamma { get; init; }
Property Value
Rho
Gets the sensitivity to the risk-free rate.
public double? Rho { get; init; }
Property Value
Theta
Gets the sensitivity to time.
public double? Theta { get; init; }
Property Value
Vega
Gets the sensitivity to the volatility.
public double? Vega { get; init; }
Property Value
Methods
Equals(InstrumentResults?)
public override sealed bool Equals(InstrumentResults? other)
Parameters
otherInstrumentResults
Returns
Equals(MultiAssetOptionResults?)
public virtual bool Equals(MultiAssetOptionResults? other)
Parameters
otherMultiAssetOptionResults
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(MultiAssetOptionResults?, MultiAssetOptionResults?)
public static bool operator ==(MultiAssetOptionResults? left, MultiAssetOptionResults? right)
Parameters
leftMultiAssetOptionResultsrightMultiAssetOptionResults
Returns
operator !=(MultiAssetOptionResults?, MultiAssetOptionResults?)
public static bool operator !=(MultiAssetOptionResults? left, MultiAssetOptionResults? right)
Parameters
leftMultiAssetOptionResultsrightMultiAssetOptionResults