Table of Contents

Class OtcPrice

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

Represents daily OTC (Over-the-Counter) price data for a security.

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

Remarks

Constructors

OtcPrice()

public OtcPrice()

OtcPrice(OtcPrice)

protected OtcPrice(OtcPrice original)

Parameters

original OtcPrice

Properties

Close

The closing price for the trading day.

public decimal Close { get; set; }

Property Value

decimal

Date

The date for the price record (format: yyyy-MM-dd).

public DateOnly Date { get; set; }

Property Value

DateOnly

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

High

The highest price reached during the trading day.

public decimal High { get; set; }

Property Value

decimal

Low

The lowest price reached during the trading day.

public decimal Low { get; set; }

Property Value

decimal

Open

The opening price for the trading day.

public decimal Open { get; set; }

Property Value

decimal

TradingSymbol

The trading symbol of the security (e.g., "AABB").

public string? TradingSymbol { get; set; }

Property Value

string

Volume

The trading volume for the day.

public decimal Volume { get; set; }

Property Value

decimal

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(OtcPrice?)

public virtual bool Equals(OtcPrice? other)

Parameters

other OtcPrice

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(OtcPrice?, OtcPrice?)

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

Parameters

left OtcPrice
right OtcPrice

Returns

bool

operator !=(OtcPrice?, OtcPrice?)

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

Parameters

left OtcPrice
right OtcPrice

Returns

bool