Table of Contents

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

LockId Guid

Store this on the line.

From string

ISO 4217 source currency.

To string

ISO 4217 target currency.

RateDate DateOnly

Business date the lock is for.

ObservationDate DateOnly

Date the source published the rate.

Rate decimal

The locked rate (full precision).

Source string

Rate source.

CreatedAt DateTimeOffset

When the lock was first created.

Properties

CreatedAt

When the lock was first created.

public DateTimeOffset CreatedAt { get; init; }

Property Value

DateTimeOffset

From

ISO 4217 source currency.

public string From { get; init; }

Property Value

string

LockId

Store this on the line.

public Guid LockId { get; init; }

Property Value

Guid

ObservationDate

Date the source published the rate.

public DateOnly ObservationDate { get; init; }

Property Value

DateOnly

Rate

The locked rate (full precision).

public decimal Rate { get; init; }

Property Value

decimal

RateDate

Business date the lock is for.

public DateOnly RateDate { get; init; }

Property Value

DateOnly

Source

Rate source.

public string Source { get; init; }

Property Value

string

To

ISO 4217 target currency.

public string To { get; init; }

Property Value

string