Table of Contents

Class SenateTrading

Namespace
Tudormobile.FinancialData.Entities
Assembly
Tudormobile.FinancialData.dll

Represents a stock transaction by a U.S. Senator.

See: https://financialdata.net/documentation#senate_trading

public record SenateTrading : IEquatable<SenateTrading>
Inheritance
SenateTrading
Implements
Inherited Members

Constructors

SenateTrading()

public SenateTrading()

SenateTrading(SenateTrading)

protected SenateTrading(SenateTrading original)

Parameters

original SenateTrading

Properties

AmountRange

Gets the amount range of the transaction.

public string? AmountRange { get; init; }

Property Value

string

AssetType

Gets the asset type (e.g., Stock, Stock Option).

public string? AssetType { get; init; }

Property Value

string

Comment

Gets additional comments.

public string? Comment { get; init; }

Property Value

string

DisclosureDate

Gets the disclosure date.

public DateOnly DisclosureDate { get; init; }

Property Value

DateOnly

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

SenatorName

Gets the name of the Senator.

public string? SenatorName { get; init; }

Property Value

string

TradingSymbol

Gets the trading symbol of the company.

public string? TradingSymbol { get; init; }

Property Value

string

TransactionDate

Gets the date of the transaction.

public DateOnly TransactionDate { get; init; }

Property Value

DateOnly

TransactionType

Gets the transaction type (e.g., Purchase, Sale).

public string? TransactionType { get; init; }

Property Value

string

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(SenateTrading?)

public virtual bool Equals(SenateTrading? other)

Parameters

other SenateTrading

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(SenateTrading?, SenateTrading?)

public static bool operator ==(SenateTrading? left, SenateTrading? right)

Parameters

left SenateTrading
right SenateTrading

Returns

bool

operator !=(SenateTrading?, SenateTrading?)

public static bool operator !=(SenateTrading? left, SenateTrading? right)

Parameters

left SenateTrading
right SenateTrading

Returns

bool