Class CrossCurrencySwapResults
- Namespace
- NanoQL.Instruments
- Assembly
- NanoQL.dll
The results an engine returns for a cross-currency swap: the swap's, in the NPV currency, with each leg's NPV and BPS in its own currency and its discount factor at the NPV date.
public record CrossCurrencySwapResults : SwapResults, IEquatable<InstrumentResults>, IEquatable<SwapResults>, IEquatable<CrossCurrencySwapResults>
- Inheritance
-
CrossCurrencySwapResults
- Implements
- Derived
- Inherited Members
Remarks
Unsealed, as QuantLib's, since the constant-notional and mark-to-market swaps' results derive from it. A per-leg result QuantLib leaves null is null. Equality compares the per-leg arrays element by element.
Constructors
CrossCurrencySwapResults()
Initializes a new instance of the CrossCurrencySwapResults class.
public CrossCurrencySwapResults()
CrossCurrencySwapResults(CrossCurrencySwapResults)
protected CrossCurrencySwapResults(CrossCurrencySwapResults original)
Parameters
originalCrossCurrencySwapResults
Properties
EqualityContract
protected override Type EqualityContract { get; }
Property Value
InCcyLegBPS
Gets each leg's basis-point sensitivity in its own currency, signed by whether the leg is paid.
public ImmutableArray<double?> InCcyLegBPS { get; init; }
Property Value
InCcyLegNPV
Gets each leg's NPV in its own currency, signed by whether the leg is paid.
public ImmutableArray<double?> InCcyLegNPV { get; init; }
Property Value
NpvDateDiscounts
Gets each leg's discount factor at the NPV date, on its own currency's curve.
public ImmutableArray<double?> NpvDateDiscounts { get; init; }
Property Value
Methods
Equals(CrossCurrencySwapResults?)
public virtual bool Equals(CrossCurrencySwapResults? other)
Parameters
otherCrossCurrencySwapResults
Returns
Equals(SwapResults?)
public override sealed bool Equals(SwapResults? other)
Parameters
otherSwapResults
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 ==(CrossCurrencySwapResults?, CrossCurrencySwapResults?)
public static bool operator ==(CrossCurrencySwapResults? left, CrossCurrencySwapResults? right)
Parameters
leftCrossCurrencySwapResultsrightCrossCurrencySwapResults
Returns
operator !=(CrossCurrencySwapResults?, CrossCurrencySwapResults?)
public static bool operator !=(CrossCurrencySwapResults? left, CrossCurrencySwapResults? right)
Parameters
leftCrossCurrencySwapResultsrightCrossCurrencySwapResults