Class DailyOpenClose
- Namespace
- MassiveDotNet.Rest.Models
- Assembly
- MassiveDotNet.Rest.dll
The open, high, low, close, and volume for one ticker on one trading day, with its pre-market and after-hours prices.
public sealed record DailyOpenClose : IEquatable<DailyOpenClose>
- Inheritance
-
DailyOpenClose
- Implements
- Inherited Members
Remarks
The response body is the payload, so the envelope's Status is a member here (decision D17). From is a calendar date, hence LocalDate.
Properties
AfterHours
The close price of the ticker symbol in after hours trading.
[JsonPropertyName("afterHours")]
public double? AfterHours { get; init; }
Property Value
Close
The close price for the symbol in the given time period.
[JsonPropertyName("close")]
public double Close { get; init; }
Property Value
From
The requested date.
[JsonPropertyName("from")]
public LocalDate From { get; init; }
Property Value
High
The highest price for the symbol in the given time period.
[JsonPropertyName("high")]
public double High { get; init; }
Property Value
IsOtc
Whether this ticker trades over the counter. The API omits the field entirely when false, which deserializes to false here.
[JsonPropertyName("otc")]
public bool IsOtc { get; init; }
Property Value
Low
The lowest price for the symbol in the given time period.
[JsonPropertyName("low")]
public double Low { get; init; }
Property Value
Open
The open price for the symbol in the given time period.
[JsonPropertyName("open")]
public double Open { get; init; }
Property Value
PreMarket
The open price in pre-market trading. The description calls this an integer; it is a price.
[JsonPropertyName("preMarket")]
public double? PreMarket { get; init; }
Property Value
Status
The status of this request's response.
[JsonPropertyName("status")]
public required string Status { get; init; }
Property Value
Symbol
The exchange symbol that this item is traded under.
[JsonPropertyName("symbol")]
public required string Symbol { get; init; }
Property Value
Volume
The trading volume of the symbol in the given time period.
[JsonPropertyName("volume")]
public double Volume { get; init; }