Class AssetIdentifier
Identifier for an asset. Two flavours:
- AssetIdentifier.SimpleAssetIdentifier: any opaque string (e.g. ticker).
- AssetIdentifier.CurrencyAssetIdentifier: an ISO-like currency code.
public abstract record AssetIdentifier : IAssetIdentifier, IEquatable<IAssetIdentifier>, IEquatable<AssetIdentifier>
- Inheritance
-
AssetIdentifier
- Implements
- Derived
- Inherited Members
Properties
Value
The string payload of the identifier.
public abstract string Value { get; }
Property Value
Methods
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
ForCurrency(CurrencySymbol)
Construct a currency-backed asset identifier.
public static AssetIdentifier ForCurrency(Currency.CurrencySymbol currency)
Parameters
currencyCurrency.CurrencySymbol
Returns
New(string)
Construct an opaque string asset identifier.
public static AssetIdentifier New(string value)
Parameters
valuestring