Table of Contents

Class GlobalQuote

Namespace
Tudormobile.AlphaVantage.Entities
Assembly
Tudormobile.AlphaVantageAPI.dll

Represents a global quote for a stock symbol containing current market data and trading information. This class encapsulates real-time or latest available trading data for a security.

public class GlobalQuote : IEntity
Inheritance
GlobalQuote
Implements
Inherited Members

Constructors

GlobalQuote()

public GlobalQuote()

Properties

Change

Gets the absolute change in price from the previous close to the current price.

public decimal Change { get; init; }

Property Value

decimal

The price change as a decimal value (positive for gains, negative for losses).

ChangePercent

Gets the percentage change in price from the previous close to the current price.

public string ChangePercent { get; }

Property Value

string

A formatted string representing the percentage change with two decimal places and a '%' symbol.

Remarks

The percentage is calculated as (Change / PreviousClose * 100). This is not strictly the same value returned by the API, which may have different formatting. Returns "0.00%" if PreviousClose is zero to avoid division by zero.

High

Gets the highest price reached by the security during the latest trading day.

public decimal High { get; init; }

Property Value

decimal

The highest trading price for the day, expressed as a decimal value.

LatestTradingDay

Gets the date of the latest trading day for this quote.

public DateOnly LatestTradingDay { get; init; }

Property Value

DateOnly

The date when this trading data was recorded.

Low

Gets the lowest price reached by the security during the latest trading day.

public decimal Low { get; init; }

Property Value

decimal

The lowest trading price for the day, expressed as a decimal value.

Open

Gets the opening price of the security for the latest trading day.

public decimal Open { get; init; }

Property Value

decimal

The price at which the security opened trading, expressed as a decimal value.

PreviousClose

Gets the closing price from the previous trading day.

public decimal PreviousClose { get; init; }

Property Value

decimal

The previous day's closing price, expressed as a decimal value.

Price

Gets the current or latest trading price of the security.

public decimal Price { get; init; }

Property Value

decimal

The most recent trading price, expressed as a decimal value.

Symbol

Gets the stock symbol or ticker for this quote.

public string Symbol { get; init; }

Property Value

string

The stock symbol (e.g., "AAPL", "MSFT") that uniquely identifies the security.

Volume

Gets the total number of shares traded during the latest trading day.

public long Volume { get; init; }

Property Value

long

The trading volume as a long integer representing the number of shares.