Class FxForwardResults
- Namespace
- NanoQL.Instruments
- Assembly
- NanoQL.dll
The results of an FxForward's engine: the instrument's results, with the NPV in the source currency, and the fair forward rate and the NPV in each currency.
public sealed record FxForwardResults : InstrumentResults, IEquatable<InstrumentResults>, IEquatable<FxForwardResults>
- Inheritance
-
FxForwardResults
- Implements
- Inherited Members
Remarks
Where QuantLib throws "fair forward rate not available" and "NPV in … currency not available" on reading a null result, the caller checks for the null.
Constructors
FxForwardResults()
public FxForwardResults()
Properties
EqualityContract
protected override Type EqualityContract { get; }
Property Value
FairForwardRate
Gets the fair forward rate, units of the target currency per unit of the source, the market-implied rate the engine computes.
public double? FairForwardRate { get; init; }
Property Value
NpvSourceCurrency
Gets the NPV in the source currency.
public double? NpvSourceCurrency { get; init; }
Property Value
NpvTargetCurrency
Gets the NPV in the target currency.
public double? NpvTargetCurrency { get; init; }
Property Value
Methods
Equals(InstrumentResults?)
public override sealed bool Equals(InstrumentResults? other)
Parameters
otherInstrumentResults
Returns
Equals(FxForwardResults?)
public bool Equals(FxForwardResults? other)
Parameters
otherFxForwardResults
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 ==(FxForwardResults?, FxForwardResults?)
public static bool operator ==(FxForwardResults? left, FxForwardResults? right)
Parameters
leftFxForwardResultsrightFxForwardResults
Returns
operator !=(FxForwardResults?, FxForwardResults?)
public static bool operator !=(FxForwardResults? left, FxForwardResults? right)
Parameters
leftFxForwardResultsrightFxForwardResults