Table of Contents

Class ReferenceSplit

Namespace
MassiveDotNet.Rest.Models
Assembly
MassiveDotNet.Rest.dll

A stock split from the v3 reference route: the ticker, the execution date, and the ratio.

public sealed record ReferenceSplit : IEquatable<ReferenceSplit>
Inheritance
ReferenceSplit
Implements
Inherited Members

Remarks

Reference data, so a class (decision D4). Prefixed because the stocks/v1 route's Split carries two properties this one lacks (decision D16, D-R7). ExecutionDate is a bare string in the description and an ISO calendar date on the wire, hence LocalDate from the map (D-R9).

Properties

ExecutionDate

The date the split took effect. The description types this a bare string; the wire carries an ISO calendar date (D-R9).

[JsonPropertyName("execution_date")]
public LocalDate ExecutionDate { get; init; }

Property Value

LocalDate

Id

The unique identifier for this stock split.

[JsonPropertyName("id")]
public required string Id { get; init; }

Property Value

string

SplitFrom

The second number in the split ratio. For example: In a 2-for-1 split, split_from would be 1.

[JsonPropertyName("split_from")]
public double SplitFrom { get; init; }

Property Value

double

SplitTo

The first number in the split ratio. For example: In a 2-for-1 split, split_to would be 2.

[JsonPropertyName("split_to")]
public double SplitTo { get; init; }

Property Value

double

Ticker

The ticker symbol of the stock split.

[JsonPropertyName("ticker")]
public required string Ticker { get; init; }

Property Value

string