Table of Contents

Class NewsArticle

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

A news article associated with one or more tickers, with its publisher and per-ticker sentiment insights.

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

Remarks

Reference data, so a class rather than a struct (decision D4). PublishedUtc is a moment on the global timeline, hence Instant; the nested Publisher and Insights are models of their own (decision D16).

Properties

AmpUrl

The mobile friendly Accelerated Mobile Page (AMP) URL.

[JsonPropertyName("amp_url")]
public string? AmpUrl { get; init; }

Property Value

string

ArticleUrl

A link to the news article.

[JsonPropertyName("article_url")]
public required string ArticleUrl { get; init; }

Property Value

string

Author

The article's author.

[JsonPropertyName("author")]
public required string Author { get; init; }

Property Value

string

Description

A description of the article.

[JsonPropertyName("description")]
public string? Description { get; init; }

Property Value

string

Id

Unique identifier for the article.

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

Property Value

string

ImageUrl

The article's image URL.

[JsonPropertyName("image_url")]
public string? ImageUrl { get; init; }

Property Value

string

Insights

The insights related to the article.

[JsonPropertyName("insights")]
[JsonConverter(typeof(PooledArrayConverter<NewsInsight>))]
public NewsInsight[]? Insights { get; init; }

Property Value

NewsInsight[]

Keywords

The keywords associated with the article (which will vary depending on the publishing source).

[JsonPropertyName("keywords")]
[JsonConverter(typeof(PooledArrayConverter<string>))]
public string[]? Keywords { get; init; }

Property Value

string[]

PublishedUtc

The UTC date and time when the article was published, formatted in RFC3339 standard (e.g. YYYY-MM-DDTHH:MM:SSZ).

[JsonPropertyName("published_utc")]
public Instant PublishedUtc { get; init; }

Property Value

Instant

Publisher

Details the source of the news article, including the publisher's name, logo, and homepage URLs. This information helps users identify and access the original source of news content.

[JsonPropertyName("publisher")]
public required NewsPublisher Publisher { get; init; }

Property Value

NewsPublisher

Tickers

The ticker symbols associated with the article.

[JsonPropertyName("tickers")]
[JsonConverter(typeof(PooledArrayConverter<string>))]
public required string[] Tickers { get; init; }

Property Value

string[]

Title

The title of the news article.

[JsonPropertyName("title")]
public required string Title { get; init; }

Property Value

string