Class ExchangeRateLocked
- Namespace
- Integrations.Contracts.Events
- Assembly
- Integrations.Contracts.dll
The first lock for a pair and business date was created; later locks that day reuse it.
public sealed record ExchangeRateLocked : IEquatable<ExchangeRateLocked>
- Inheritance
-
ExchangeRateLocked
- Implements
- Inherited Members
Constructors
ExchangeRateLocked(Guid, string, string, DateOnly, DateOnly, decimal, string, DateTimeOffset)
The first lock for a pair and business date was created; later locks that day reuse it.
public ExchangeRateLocked(Guid LockId, string From, string To, DateOnly RateDate, DateOnly ObservationDate, decimal Rate, string Source, DateTimeOffset OccurredAt)
Parameters
LockIdGuidLock id every line committed that day for the pair shares.
FromstringSource currency.
TostringTarget currency.
RateDateDateOnlyBusiness date locked.
ObservationDateDateOnlyDate the source published the rate.
RatedecimalLocked rate.
SourcestringRate source.
OccurredAtDateTimeOffsetWhen the lock was created.
Properties
From
Source currency.
public string From { get; init; }
Property Value
LockId
Lock id every line committed that day for the pair shares.
public Guid LockId { get; init; }
Property Value
ObservationDate
Date the source published the rate.
public DateOnly ObservationDate { get; init; }
Property Value
OccurredAt
When the lock was created.
public DateTimeOffset OccurredAt { get; init; }
Property Value
Rate
Locked rate.
public decimal Rate { get; init; }
Property Value
RateDate
Business date locked.
public DateOnly RateDate { get; init; }
Property Value
Source
Rate source.
public string Source { get; init; }
Property Value
To
Target currency.
public string To { get; init; }