Table of Contents

Class StockPrice

Namespace
Tudormobile.FinancialData.Entities
Assembly
Tudormobile.FinancialData.dll

Represents daily stock price information for a specific trading symbol, including open, high, low, close prices, and trading volume.

public record StockPrice : IEquatable<StockPrice>
Inheritance
StockPrice
Implements
Inherited Members

Remarks

This record is intended for use in financial data processing scenarios, such as historical price analysis, charting, or serialization. All properties are required to accurately describe a single day's trading activity for the specified symbol.

Constructors

StockPrice()

public StockPrice()

StockPrice(StockPrice)

protected StockPrice(StockPrice original)

Parameters

original StockPrice

Properties

Close

Gets the closing price of the asset for the trading period.

public decimal Close { get; init; }

Property Value

decimal

Date

Gets the date associated with the record.

public DateOnly Date { get; set; }

Property Value

DateOnly

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

High

Gets the highest price recorded during the relevant time period.

public decimal High { get; init; }

Property Value

decimal

Low

Gets the lowest price recorded during the relevant time period.

public decimal Low { get; init; }

Property Value

decimal

Open

Gets the opening price of the asset for the trading period.

public decimal Open { get; init; }

Property Value

decimal

Time

Gets the timestamp representing the date and time associated with the current instance.

public DateTimeOffset Time { get; set; }

Property Value

DateTimeOffset

Remarks

This property is initialized at the time of object creation and cannot be modified thereafter. It is represented as a DateTimeOffset, which includes both the date and time along with the offset from UTC.

TradingSymbol

Gets the trading symbol associated with the financial instrument.

public string? TradingSymbol { get; init; }

Property Value

string

Volume

Gets the total traded volume for the security.

public decimal Volume { get; init; }

Property Value

decimal

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(StockPrice?)

public virtual bool Equals(StockPrice? other)

Parameters

other StockPrice

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

Returns a string representation of the current instance serialized using the FinancialDataSerializer.

public override string ToString()

Returns

string

A string that contains the serialized form of the current object.

Remarks

Use this method to obtain a text-based representation suitable for storage or transmission. The format of the returned string is determined by FinancialDataSerializer and may be subject to change in future versions.

Operators

operator ==(StockPrice?, StockPrice?)

public static bool operator ==(StockPrice? left, StockPrice? right)

Parameters

left StockPrice
right StockPrice

Returns

bool

operator !=(StockPrice?, StockPrice?)

public static bool operator !=(StockPrice? left, StockPrice? right)

Parameters

left StockPrice
right StockPrice

Returns

bool