Struct SnapshotPreviousDay
- Namespace
- MassiveDotNet.Rest.Models
- Assembly
- MassiveDotNet.Rest.dll
The previous trading day's bar inside a snapshot: open, high, low, close, and volume.
[JsonConverter(typeof(SnapshotPreviousDayJsonConverter))]
public readonly record struct SnapshotPreviousDay : IEquatable<SnapshotPreviousDay>
- Implements
- Inherited Members
Remarks
A struct like Agg (decision D4). SnapshotDay carries a decimal volume this shape lacks, which is why the two are separate models (decision D16).
Properties
Close
The close price for the symbol in the given time period.
[JsonPropertyName("c")]
public double Close { get; init; }
Property Value
High
The highest price for the symbol in the given time period.
[JsonPropertyName("h")]
public double High { get; init; }
Property Value
IsOtc
Whether this aggregate is for an OTC ticker. 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("l")]
public double Low { get; init; }
Property Value
Open
The open price for the symbol in the given time period.
[JsonPropertyName("o")]
public double Open { get; init; }
Property Value
Volume
The trading volume of the symbol in the given time period.
[JsonPropertyName("v")]
public double Volume { get; init; }
Property Value
VolumeWeightedAveragePrice
The volume weighted average price.
[JsonPropertyName("vw")]
public double VolumeWeightedAveragePrice { get; init; }