Struct Symbol
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
ValuestringRaw identifier string (e.g.
BTCUSDT,AAPL).
Properties
Value
Raw identifier string (e.g. BTCUSDT, AAPL).
public string Value { get; init; }
Property Value
Methods
Equals(Symbol)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Symbol other)
Parameters
otherSymbolAn object to compare with this object.
Returns
Equals(IAssetIdentifier?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(IAssetIdentifier? other)
Parameters
otherIAssetIdentifierAn object to compare with this object.
Returns
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.