Class FuturesSymbol
- Namespace
- Tudormobile.FinancialData.Entities
- Assembly
- Tudormobile.FinancialData.dll
Represents a futures contract symbol and its description and type.
See: https://financialdata.net/documentation#futures_symbols
public record FuturesSymbol : IEquatable<FuturesSymbol>
- Inheritance
-
FuturesSymbol
- Implements
- Inherited Members
Constructors
FuturesSymbol()
public FuturesSymbol()
FuturesSymbol(FuturesSymbol)
protected FuturesSymbol(FuturesSymbol original)
Parameters
originalFuturesSymbol
Properties
Description
Gets the description of the futures contract.
public string? Description { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
TradingSymbol
Gets the trading symbol of the futures contract.
public string? TradingSymbol { get; init; }
Property Value
Type
Gets the type of futures contract (e.g., Interest Rates, Metals, Equities).
public string? Type { get; init; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(FuturesSymbol?)
public virtual bool Equals(FuturesSymbol? other)
Parameters
otherFuturesSymbol
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(FuturesSymbol?, FuturesSymbol?)
public static bool operator ==(FuturesSymbol? left, FuturesSymbol? right)
Parameters
leftFuturesSymbolrightFuturesSymbol
Returns
operator !=(FuturesSymbol?, FuturesSymbol?)
public static bool operator !=(FuturesSymbol? left, FuturesSymbol? right)
Parameters
leftFuturesSymbolrightFuturesSymbol