Table of Contents

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
object
MoneyCurrencyInfo
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

Code string

ISO 4217 code.

Symbol string

Symbol shown next to the amount.

SymbolBeforeAmount bool

True when the symbol precedes the amount ($100), false when it follows it (100 CHF).

Decimals int

Number 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

Code string
Symbol string
SymbolBeforeAmount bool
Decimals int

Equals(MoneyCurrencyInfo?)

public bool Equals(MoneyCurrencyInfo? other)

Parameters

other MoneyCurrencyInfo

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

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

left MoneyCurrencyInfo
right MoneyCurrencyInfo

Returns

bool

operator !=(MoneyCurrencyInfo?, MoneyCurrencyInfo?)

public static bool operator !=(MoneyCurrencyInfo? left, MoneyCurrencyInfo? right)

Parameters

left MoneyCurrencyInfo
right MoneyCurrencyInfo

Returns

bool