Class TickerSnapshot
- Namespace
- MassiveDotNet.Rest.Models
- Assembly
- MassiveDotNet.Rest.dll
The current state of one ticker: today's and the previous day's bars, the latest minute bar, the last quote and trade, and today's change.
public sealed record TickerSnapshot : IEquatable<TickerSnapshot>
- Inheritance
-
TickerSnapshot
- Implements
- Inherited Members
Remarks
A container of five optional structs rather than a tick, so a class (decision D4). Each nested object is a model of its own (decision D16), null when the ticker has not traded in the window it describes. Updated is computed from UpdatedNanoseconds only when read (decision D5). The three snapshot operations share this shape, and the generator verifies each site against it.
Properties
Day
The most recent daily bar for this ticker.
[JsonPropertyName("day")]
public SnapshotDay? Day { get; init; }
Property Value
FairMarketValue
Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, contact us.
[JsonPropertyName("fmv")]
public double? FairMarketValue { get; init; }
Property Value
LastQuote
The most recent quote for this ticker. This is only returned if your current plan includes quotes.
[JsonPropertyName("lastQuote")]
public SnapshotLastQuote? LastQuote { get; init; }
Property Value
LastTrade
The most recent trade for this ticker. This is only returned if your current plan includes trades.
[JsonPropertyName("lastTrade")]
public SnapshotLastTrade? LastTrade { get; init; }
Property Value
Minute
The most recent minute bar for this ticker.
[JsonPropertyName("min")]
public SnapshotMinute? Minute { get; init; }
Property Value
PreviousDay
The previous day's bar for this ticker.
[JsonPropertyName("prevDay")]
public SnapshotPreviousDay? PreviousDay { get; init; }
Property Value
Ticker
The exchange symbol that this item is traded under.
[JsonPropertyName("ticker")]
public string? Ticker { get; init; }
Property Value
TodaysChange
The value of the change from the previous day.
[JsonPropertyName("todaysChange")]
public double? TodaysChange { get; init; }
Property Value
TodaysChangePercent
The percentage change since the previous day.
[JsonPropertyName("todaysChangePerc")]
public double? TodaysChangePercent { get; init; }
Property Value
Updated
The moment this snapshot was last updated, converted from UpdatedNanoseconds, or null when the service sent none.
[JsonIgnore]
public Instant? Updated { get; }
Property Value
Remarks
The conversion happens only when read (decision D5).
UpdatedNanoseconds
The nanosecond Unix timestamp of the last update to this snapshot. The description declares a bare integer; every value overflows int32.
[JsonPropertyName("updated")]
public long? UpdatedNanoseconds { get; init; }
Property Value
- long?