Table of Contents

Class TimeSeries

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

Represents time series data for a financial instrument, containing historical price and volume information organized by date and time interval.

public class TimeSeries : IEntity
Inheritance
TimeSeries
Implements
Inherited Members

Remarks

This class provides a structured representation of time series data from Alpha Vantage, supporting various time intervals from intraday (1-minute) to long-term (monthly) data. The data is stored as a dictionary keyed by date for efficient lookup and retrieval.

Constructors

TimeSeries()

public TimeSeries()

Properties

Data

Gets the dictionary containing time series data points indexed by date.

public IDictionary<DateOnly, TimeSeriesData> Data { get; init; }

Property Value

IDictionary<DateOnly, TimeSeriesData>

A dictionary where each key is a DateOnly representing the data point's timestamp, and each value is a TimeSeriesData object containing the corresponding price and volume information.

Interval

Gets the time interval for this time series data.

public TimeSeries.TimeSeriesInterval Interval { get; init; }

Property Value

TimeSeries.TimeSeriesInterval

A TimeSeries.TimeSeriesInterval value indicating the granularity of the time series data (e.g., daily, weekly, intraday intervals).

LastUpdated

Gets the date associated with this time series data point.

public DateOnly LastUpdated { get; init; }

Property Value

DateOnly

The date and time of the time series entry.

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.