Table of Contents

CurrencyPairRequest Struct

Definition

Namespace
Bodu.Financial.ExchangeRates
Assembly
Bodu.Financial.dll
Package
Bodu.Financial 1.0.0
Source
CurrencyPairRequest.cs

Describes a single pair-based fetch request issued to an IPairRateSource<TSeries>: the currency pair to load and the inclusive date range to cover.

public readonly struct CurrencyPairRequest : IEquatable<CurrencyPairRequest>
Implements
Inherited Members
Extension Methods

Remarks

A source maps the request to the wire form its feed requires (a ticker symbol, a path, query parameters) and is free to over-fetch and range-filter the result; the request expresses only the caller's intent, not the feed's transport.

Constructors

CurrencyPairRequest(CurrencyPair, DateOnly, DateOnly)

Describes a single pair-based fetch request issued to an IPairRateSource<TSeries>: the currency pair to load and the inclusive date range to cover.

public CurrencyPairRequest(CurrencyPair Pair, DateOnly StartDate, DateOnly EndDate)

Parameters

Pair CurrencyPair

The currency pair to fetch.

StartDate DateOnly

The inclusive start of the range to fetch.

EndDate DateOnly

The inclusive end of the range to fetch.

Remarks

A source maps the request to the wire form its feed requires (a ticker symbol, a path, query parameters) and is free to over-fetch and range-filter the result; the request expresses only the caller's intent, not the feed's transport.

Properties

EndDate

The inclusive end of the range to fetch.

public DateOnly EndDate { get; init; }

Property Value

DateOnly

Pair

The currency pair to fetch.

public CurrencyPair Pair { get; init; }

Property Value

CurrencyPair

StartDate

The inclusive start of the range to fetch.

public DateOnly StartDate { get; init; }

Property Value

DateOnly

Methods

Deconstruct(out CurrencyPair, out DateOnly, out DateOnly)

public void Deconstruct(out CurrencyPair Pair, out DateOnly StartDate, out DateOnly EndDate)

Parameters

Pair CurrencyPair
StartDate DateOnly
EndDate DateOnly

Equals(CurrencyPairRequest)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(CurrencyPairRequest other)

Parameters

other CurrencyPairRequest

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.

Operators

operator ==(CurrencyPairRequest, CurrencyPairRequest)

public static bool operator ==(CurrencyPairRequest left, CurrencyPairRequest right)

Parameters

left CurrencyPairRequest
right CurrencyPairRequest

Returns

bool

operator !=(CurrencyPairRequest, CurrencyPairRequest)

public static bool operator !=(CurrencyPairRequest left, CurrencyPairRequest right)

Parameters

left CurrencyPairRequest
right CurrencyPairRequest

Returns

bool

Applies to

ProductVersions
.NET8, 10