Class IndexPrice
- Namespace
- Tudormobile.FinancialData.Entities
- Assembly
- Tudormobile.FinancialData.dll
Represents daily price information for a market index, including open, high, low, close, and volume.
See: https://financialdata.net/documentation#index_prices
public record IndexPrice : IEquatable<IndexPrice>
- Inheritance
-
IndexPrice
- Implements
- Inherited Members
Constructors
IndexPrice()
public IndexPrice()
IndexPrice(IndexPrice)
protected IndexPrice(IndexPrice original)
Parameters
originalIndexPrice
Properties
Close
Gets the closing price of the index for the trading period.
public decimal Close { get; init; }
Property Value
Date
Gets the date of the price record.
public DateOnly? Date { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
High
Gets the highest price recorded during the trading period.
public decimal High { get; init; }
Property Value
Low
Gets the lowest price recorded during the trading period.
public decimal Low { get; init; }
Property Value
Open
Gets the opening price of the index for the trading period.
public decimal Open { get; init; }
Property Value
TradingSymbol
Gets the trading symbol of the market index.
public string? TradingSymbol { get; init; }
Property Value
Volume
Gets the total traded volume for the index.
public decimal Volume { get; init; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(IndexPrice?)
public virtual bool Equals(IndexPrice? other)
Parameters
otherIndexPrice
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(IndexPrice?, IndexPrice?)
public static bool operator ==(IndexPrice? left, IndexPrice? right)
Parameters
leftIndexPricerightIndexPrice
Returns
operator !=(IndexPrice?, IndexPrice?)
public static bool operator !=(IndexPrice? left, IndexPrice? right)
Parameters
leftIndexPricerightIndexPrice