Class SecuritiesPriceField

Namespace
Subsembly.Swift.SecuritiesMarkets
Assembly
Subsembly.Sepa.dll

Generic field Price (Field 90a).

public class SecuritiesPriceField : SecuritiesGenericField, ISecuritiesSequence
Inheritance
SecuritiesPriceField
Implements
Inherited Members

Remarks

With field option 90A the price is a percentage without CurrencyCode, and the TypeCode is a Percentage Type Code. With field option 90B, the price is a monetary amount with CurrencyCode, and the TypeCode is an Amount Type Code.

Constructors

SecuritiesPriceField(string, string)

public SecuritiesPriceField(string sTag, string sQualifier)

Parameters

sTag string
sQualifier string

Properties

Amount

The unsigned amount of this price. This may be either a monetary amount, or a percentage of a nominal face amount.

public decimal Amount { get; set; }

Property Value

decimal

Remarks

If a CurrencyCode is present, then it is a monetary amount. If CurrencyCode is null, then it is a percentage.

CurrencyCode

If this price is a monetary amount, then the currency is specified here. If this is null, then Amount specifies a percentage.

public string CurrencyCode { get; set; }

Property Value

string

IsEmpty

public override bool IsEmpty { get; }

Property Value

bool

IsPercentage

public bool IsPercentage { get; }

Property Value

bool

TypeCode

The mandatory Percentage Type Code, or Amount Type Code of this price.

public string TypeCode { get; set; }

Property Value

string

Remarks

For percentages, this is usually one of "PRCT", "DISC", "PREM", or "YIEL". For monetary amounts, this is usually one of "ACTU", "DISC", "PREM".

Methods

OnChooseFieldTag()

protected override string OnChooseFieldTag()

Returns

string

OnClear()

protected override void OnClear()

OnGenerateFieldContent(string, string)

protected override string OnGenerateFieldContent(string sTag, string sQualifier)

Parameters

sTag string
sQualifier string

Returns

string

OnParseFieldContent(SwiftField)

protected override void OnParseFieldContent(SwiftField aField)

Parameters

aField SwiftField

OnValidate()

protected override string OnValidate()

Returns

string