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
PairCurrencyPairThe currency pair to fetch.
StartDateDateOnlyThe inclusive start of the range to fetch.
EndDateDateOnlyThe 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
Pair
The currency pair to fetch.
public CurrencyPair Pair { get; init; }
Property Value
StartDate
The inclusive start of the range to fetch.
public DateOnly StartDate { get; init; }
Property Value
Methods
Deconstruct(out CurrencyPair, out DateOnly, out DateOnly)
public void Deconstruct(out CurrencyPair Pair, out DateOnly StartDate, out DateOnly EndDate)
Parameters
PairCurrencyPairStartDateDateOnlyEndDateDateOnly
Equals(CurrencyPairRequest)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(CurrencyPairRequest other)
Parameters
otherCurrencyPairRequestAn object to compare with this object.
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
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
leftCurrencyPairRequestrightCurrencyPairRequest
Returns
operator !=(CurrencyPairRequest, CurrencyPairRequest)
public static bool operator !=(CurrencyPairRequest left, CurrencyPairRequest right)
Parameters
leftCurrencyPairRequestrightCurrencyPairRequest
Returns
Applies to
| Product | Versions |
|---|---|
| .NET | 8, 10 |