Class RateLockDto
- Namespace
- Integrations.Contracts.Fx
- Assembly
- Integrations.Contracts.dll
A locked daily rate. Store LockId and Rate on the line; keep them when the line is edited unless its
transaction date changes. Every line locked for the same pair and date gets the same lock.
public sealed record RateLockDto : IEquatable<RateLockDto>
- Inheritance
-
RateLockDto
- Implements
- Inherited Members
Constructors
RateLockDto(Guid, string, string, DateOnly, DateOnly, decimal, string, DateTimeOffset)
A locked daily rate. Store LockId and Rate on the line; keep them when the line is edited unless its
transaction date changes. Every line locked for the same pair and date gets the same lock.
public RateLockDto(Guid LockId, string From, string To, DateOnly RateDate, DateOnly ObservationDate, decimal Rate, string Source, DateTimeOffset CreatedAt)
Parameters
LockIdGuidStore this on the line.
FromstringISO 4217 source currency.
TostringISO 4217 target currency.
RateDateDateOnlyBusiness date the lock is for.
ObservationDateDateOnlyDate the source published the rate.
RatedecimalThe locked rate (full precision).
SourcestringRate source.
CreatedAtDateTimeOffsetWhen the lock was first created.
Properties
CreatedAt
When the lock was first created.
public DateTimeOffset CreatedAt { get; init; }
Property Value
From
ISO 4217 source currency.
public string From { get; init; }
Property Value
LockId
Store this on the line.
public Guid LockId { get; init; }
Property Value
ObservationDate
Date the source published the rate.
public DateOnly ObservationDate { get; init; }
Property Value
Rate
The locked rate (full precision).
public decimal Rate { get; init; }
Property Value
RateDate
Business date the lock is for.
public DateOnly RateDate { get; init; }
Property Value
Source
Rate source.
public string Source { get; init; }
Property Value
To
ISO 4217 target currency.
public string To { get; init; }