Class MoneyCurrencyInfo
- Namespace
- ATAS.DataFeedsCore.Valuation
- Assembly
- ATAS.DataFeedsCore.dll
A fiat currency volumes, positions and filter thresholds can be valued in.
Not in ATAS 8.0.15 yet: available from the next version.
public sealed record MoneyCurrencyInfo
- Inheritance
-
objectMoneyCurrencyInfo
- Extension Methods
Constructors
MoneyCurrencyInfo(string, string, bool, int)
A fiat currency volumes, positions and filter thresholds can be valued in.
public MoneyCurrencyInfo(string Code, string Symbol, bool SymbolBeforeAmount, int Decimals)
Parameters
CodestringISO 4217 code.
SymbolstringSymbol shown next to the amount.
SymbolBeforeAmountboolTrue when the symbol precedes the amount ($100), false when it follows it (100 CHF).
DecimalsintNumber of fractional digits commonly shown for the currency.
Properties
Code
ISO 4217 code.
public string Code { get; init; }
Property Value
- string
Decimals
Number of fractional digits commonly shown for the currency.
public int Decimals { get; init; }
Property Value
- int
Symbol
Symbol shown next to the amount.
public string Symbol { get; init; }
Property Value
- string
SymbolBeforeAmount
True when the symbol precedes the amount ($100), false when it follows it (100 CHF).
public bool SymbolBeforeAmount { get; init; }
Property Value
- bool
Methods
Deconstruct(out string, out string, out bool, out int)
public void Deconstruct(out string Code, out string Symbol, out bool SymbolBeforeAmount, out int Decimals)
Parameters
CodestringSymbolstringSymbolBeforeAmountboolDecimalsint
Equals(MoneyCurrencyInfo?)
public bool Equals(MoneyCurrencyInfo? other)
Parameters
otherMoneyCurrencyInfo
Returns
- bool
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
- bool
GetHashCode()
public override int GetHashCode()
Returns
- int
ToString()
public override string ToString()
Returns
- string
Operators
operator ==(MoneyCurrencyInfo?, MoneyCurrencyInfo?)
public static bool operator ==(MoneyCurrencyInfo? left, MoneyCurrencyInfo? right)
Parameters
leftMoneyCurrencyInforightMoneyCurrencyInfo
Returns
- bool
operator !=(MoneyCurrencyInfo?, MoneyCurrencyInfo?)
public static bool operator !=(MoneyCurrencyInfo? left, MoneyCurrencyInfo? right)
Parameters
leftMoneyCurrencyInforightMoneyCurrencyInfo
Returns
- bool