Class CreditDefaultSwapResults
- Namespace
- NanoQL.Instruments
- Assembly
- NanoQL.dll
The results an engine returns for a CreditDefaultSwap: the instrument's, with the fair running spread and upfront, and the legs' values and sensitivities.
public sealed record CreditDefaultSwapResults : InstrumentResults, IEquatable<InstrumentResults>, IEquatable<CreditDefaultSwapResults>
- Inheritance
-
CreditDefaultSwapResults
- Implements
- Inherited Members
Remarks
A result QuantLib leaves at Null<Real>(), whose accessor refuses it ("… not available"), is
null: the fair spread where the coupon leg is worth nothing, the fair upfront where the upfront
has occurred, the coupon-leg BPS for a zero running spread, the upfront BPS without an upfront. Equality is by
value.
Constructors
CreditDefaultSwapResults()
public CreditDefaultSwapResults()
Properties
AccrualRebateNPV
Gets the accrual rebate's value, signed by the side.
public double? AccrualRebateNPV { get; init; }
Property Value
CouponLegBPS
Gets the change of the coupon leg's value for a one-basis-point change of the running spread.
public double? CouponLegBPS { get; init; }
Property Value
CouponLegNPV
Gets the coupon leg's value, signed by the side.
public double? CouponLegNPV { get; init; }
Property Value
DefaultLegNPV
Gets the default leg's value, signed by the side.
public double? DefaultLegNPV { get; init; }
Property Value
EqualityContract
protected override Type EqualityContract { get; }
Property Value
FairSpread
Gets the running spread that, given the recovery rate, gives the running-only swap a zero NPV, ignoring any upfront.
public double? FairSpread { get; init; }
Property Value
FairUpfront
Gets the upfront that, given the running spread and the recovery rate, gives the swap a zero NPV.
public double? FairUpfront { get; init; }
Property Value
UpfrontBPS
Gets the change of the upfront's value for a one-basis-point change of the upfront.
public double? UpfrontBPS { get; init; }
Property Value
UpfrontNPV
Gets the upfront's value, signed by the side.
public double? UpfrontNPV { get; init; }
Property Value
Methods
Equals(InstrumentResults?)
public override sealed bool Equals(InstrumentResults? other)
Parameters
otherInstrumentResults
Returns
Equals(CreditDefaultSwapResults?)
public bool Equals(CreditDefaultSwapResults? other)
Parameters
otherCreditDefaultSwapResults
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 ==(CreditDefaultSwapResults?, CreditDefaultSwapResults?)
public static bool operator ==(CreditDefaultSwapResults? left, CreditDefaultSwapResults? right)
Parameters
leftCreditDefaultSwapResultsrightCreditDefaultSwapResults
Returns
operator !=(CreditDefaultSwapResults?, CreditDefaultSwapResults?)
public static bool operator !=(CreditDefaultSwapResults? left, CreditDefaultSwapResults? right)
Parameters
leftCreditDefaultSwapResultsrightCreditDefaultSwapResults