Table of Contents

Struct Symbol

Namespace
Virtufin.Core.Events
Assembly
Virtufin.Core.dll

Identifier for a tradeable instrument on a venue. Implements IAssetIdentifier so any existing Virtufin.Base.AssetIdentifier (currency, stock, etc.) can also be used as a trade symbol.

public readonly record struct Symbol : IAssetIdentifier, IEquatable<IAssetIdentifier>, IEquatable<Symbol>
Implements
Inherited Members

Constructors

Symbol(string)

Identifier for a tradeable instrument on a venue. Implements IAssetIdentifier so any existing Virtufin.Base.AssetIdentifier (currency, stock, etc.) can also be used as a trade symbol.

public Symbol(string Value)

Parameters

Value string

Raw identifier string (e.g. BTCUSDT, AAPL).

Properties

Value

Raw identifier string (e.g. BTCUSDT, AAPL).

public string Value { get; init; }

Property Value

string

Methods

Equals(Symbol)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Symbol other)

Parameters

other Symbol

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(IAssetIdentifier?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(IAssetIdentifier? other)

Parameters

other IAssetIdentifier

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.