Struct PreviousCloseBar
- Namespace
- MassiveDotNet.Rest.Models
- Assembly
- MassiveDotNet.Rest.dll
The previous trading day's bar for one ticker: open, high, low, close, and volume.
[JsonConverter(typeof(PreviousCloseBarJsonConverter))]
public readonly record struct PreviousCloseBar : IEquatable<PreviousCloseBar>
- Implements
- Inherited Members
Remarks
Agg's shape without the OTC flag, which this endpoint's schema does not declare. A separate model because the generator refuses a model whose properties the site does not declare (decision D16). The schema also omits the ticker its example carries, so none is bound; the caller named it in the request. Timestamp is computed from TimestampMilliseconds only when read (decision D5).
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
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
Timestamp
The start of the previous trading day, converted from TimestampMilliseconds.
[JsonIgnore]
public Instant Timestamp { get; }
Property Value
Remarks
The raw long is what gets deserialized and stored; the conversion happens only when read (decision D5).
TimestampMilliseconds
The Unix millisecond timestamp for the start of the aggregate window.
[JsonPropertyName("t")]
public long TimestampMilliseconds { get; init; }
Property Value
TransactionCount
The number of transactions in the aggregate window.
[JsonPropertyName("n")]
public long? TransactionCount { get; init; }
Property Value
- long?
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; }