Class FxSwapConventionRecord
- Namespace
- NanoQL.Extensions.Conventions
- Assembly
- NanoQL.Extensions.dll
An FX swap's and forward's conventions (FxSwapConvention), which feed
FxSwapRateHelper and FxForward.
public sealed record FxSwapConventionRecord : ConventionRecord, IEquatable<ConventionRecord>, IEquatable<FxSwapConventionRecord>
- Inheritance
-
FxSwapConventionRecord
- Implements
- Inherited Members
Constructors
FxSwapConventionRecord(string, string?)
Initializes a new instance of the FxSwapConventionRecord class.
public FxSwapConventionRecord(string name, string? @base = null)
Parameters
Properties
BaseCurrency
Gets the base currency's code, or null to take the base's.
public string? BaseCurrency { get; init; }
Property Value
Calendar
Gets the calendar's name, or null to take the base's.
public string? Calendar { get; init; }
Property Value
CollateralOnBaseCurrency
Gets whether the base currency is the collateral currency, or null to take the base's.
public bool? CollateralOnBaseCurrency { get; init; }
Property Value
- bool?
Convention
Gets the business-day convention, or null to take the base's.
public BusinessDayConvention? Convention { get; init; }
Property Value
EndOfMonth
Gets whether the dates stay at month end, or null to take the base's.
public bool? EndOfMonth { get; init; }
Property Value
- bool?
EqualityContract
protected override Type EqualityContract { get; }
Property Value
FixingDays
Gets the spot days, or null to take the base's.
public int? FixingDays { get; init; }
Property Value
- int?
PaymentCalendar
Gets a forward's payment calendar's name, or null to take the base's.
public string? PaymentCalendar { get; init; }
Property Value
QuoteCurrency
Gets the quote currency's code, or null to take the base's.
public string? QuoteCurrency { get; init; }
Property Value
TradingCalendar
Gets the trading calendar's name, or null to take the base's.
public string? TradingCalendar { get; init; }
Property Value
Methods
Equals(ConventionRecord?)
public override sealed bool Equals(ConventionRecord? other)
Parameters
otherConventionRecord
Returns
Equals(FxSwapConventionRecord?)
public bool Equals(FxSwapConventionRecord? other)
Parameters
otherFxSwapConventionRecord
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 ==(FxSwapConventionRecord?, FxSwapConventionRecord?)
public static bool operator ==(FxSwapConventionRecord? left, FxSwapConventionRecord? right)
Parameters
leftFxSwapConventionRecordrightFxSwapConventionRecord
Returns
operator !=(FxSwapConventionRecord?, FxSwapConventionRecord?)
public static bool operator !=(FxSwapConventionRecord? left, FxSwapConventionRecord? right)
Parameters
leftFxSwapConventionRecordrightFxSwapConventionRecord