Class CommodityPrice
- Namespace
- Tudormobile.FinancialData.Entities
- Assembly
- Tudormobile.FinancialData.dll
Represents daily price data for a commodity.
public record CommodityPrice : IEquatable<CommodityPrice>
- Inheritance
-
CommodityPrice
- Implements
- Inherited Members
Remarks
Constructors
CommodityPrice()
public CommodityPrice()
CommodityPrice(CommodityPrice)
protected CommodityPrice(CommodityPrice original)
Parameters
originalCommodityPrice
Properties
Close
The closing price for the trading day.
public decimal Close { get; set; }
Property Value
Date
The date for the price record (format: yyyy-MM-dd).
public DateOnly Date { get; set; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
High
The highest price reached during the trading day.
public decimal High { get; set; }
Property Value
Low
The lowest price reached during the trading day.
public decimal Low { get; set; }
Property Value
Open
The opening price for the trading day.
public decimal Open { get; set; }
Property Value
TradingSymbol
The trading symbol of the commodity (e.g., "ZC").
public string? TradingSymbol { get; set; }
Property Value
Volume
The trading volume for the day.
public decimal Volume { get; set; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(CommodityPrice?)
public virtual bool Equals(CommodityPrice? other)
Parameters
otherCommodityPrice
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 ==(CommodityPrice?, CommodityPrice?)
public static bool operator ==(CommodityPrice? left, CommodityPrice? right)
Parameters
leftCommodityPricerightCommodityPrice
Returns
operator !=(CommodityPrice?, CommodityPrice?)
public static bool operator !=(CommodityPrice? left, CommodityPrice? right)
Parameters
leftCommodityPricerightCommodityPrice