Class Split
- Namespace
- MassiveDotNet.Rest.Models
- Assembly
- MassiveDotNet.Rest.dll
A stock split or similar share-count change: the ticker, the execution date, the ratio, and the factor that normalises historical prices for it.
public sealed record Split : IEquatable<Split>
- Inheritance
-
Split
- Implements
- Inherited Members
Remarks
Reference data, so a class rather than a struct (decision D4). ExecutionDate is a calendar date with no time or zone, hence LocalDate.
Properties
AdjustmentType
Classification of the share-change event. Possible values include: forward_split (share count increases), reverse_split (share count decreases), stock_dividend (shares issued as a dividend)
[JsonPropertyName("adjustment_type")]
public required string AdjustmentType { get; init; }
Property Value
ExecutionDate
Date when the stock split takes effect. The adjustment is applied overnight. On the prior trading day, the post-market session is the last session that shows pre-split prices. On the execution date, all trading is already adjusted for the split. This includes the pre-market session.
[JsonPropertyName("execution_date")]
public LocalDate? ExecutionDate { get; init; }
Property Value
HistoricalAdjustmentFactor
Cumulative adjustment factor used to offset split effects on historical prices. To adjust a historical price for splits: for a price on date D, find the first split whose execution_date is after date D and multiply the unadjusted price by the historical_adjustment_factor.
[JsonPropertyName("historical_adjustment_factor")]
public double? HistoricalAdjustmentFactor { get; init; }
Property Value
Id
Unique identifier for each stock split event
[JsonPropertyName("id")]
public string? Id { get; init; }
Property Value
SplitFrom
Denominator of the split ratio (old shares)
[JsonPropertyName("split_from")]
public double? SplitFrom { get; init; }
Property Value
SplitTo
Numerator of the split ratio (new shares)
[JsonPropertyName("split_to")]
public double? SplitTo { get; init; }
Property Value
Ticker
Stock symbol for the company that executed the split
[JsonPropertyName("ticker")]
public string? Ticker { get; init; }