Class SwiftStatementOfHoldings
Repesents and manages SWIFT MT-535 / MT-571 Customer Statement of Holdings messages.
public sealed class SwiftStatementOfHoldings : IList, ICollection, IEnumerable
- Inheritance
-
SwiftStatementOfHoldings
- Implements
- Inherited Members
Remarks
The primary purpose of the SwiftStatementOfHoldings class is convenient reading (and later creating, too) of SWIFT MT-535 / MT-571 messages. MT-535: Currently all the constant fields (field 20C "sender's reference", field 23G "function of message", field 22F ("type of the statement"), etc. ) are not validated. MT-571: Currently field 72 ("Additional information on all holdings in the message") will not be parsed and therefore items are not accessible.
Constructors
SwiftStatementOfHoldings()
public SwiftStatementOfHoldings()
Properties
ContinuationIndicator
The "Statement of Holdings" continuation indicator.
public SwiftStatementOfHoldingsContinuationIndicator ContinuationIndicator { get; set; }
Property Value
- SwiftStatementOfHoldingsContinuationIndicator
The continuation indicator is part of field 28 (MT 571) / field 28E (MT 535).
this[int]
Direct access to the contained SwiftStatementOfHoldingsFinancialInstrument objects.
public SwiftStatementOfHoldingsFinancialInstrument this[int nIndex] { get; }
Parameters
nIndexint
Property Value
NumberOfFinancialInstruments
Number of financial instruments embedded within the Statement of Holdings message.
public int NumberOfFinancialInstruments { get; }
Property Value
PageNumber
The "Statement of Holdings" page number.
public int PageNumber { get; set; }
Property Value
- int
The page number is a subfield of field 28 (MT 571) / field 28E (MT 535).
PreparationDate
The "Statement of Holdings" date when the statement was prepared.
public SwiftDate PreparationDate { get; set; }
Property Value
- SwiftDate
The Preparation Date corresponds with field 30 (MT 571) / field 98a PREP (MT 535). Both fields are optional.
PreparationTime
The "Statement of Holdings" time when the statement was prepared.
public SwiftTime PreparationTime { get; set; }
Property Value
- SwiftTime
Is part of field 98C PREP (MT 535). There's no corresponding field in MT 571 messages.
SecuritiesAccountNumber
The "Statement of Holdings" safekeeping account's number.
public string SecuritiesAccountNumber { get; set; }
Property Value
- string
The Securities Account Number corresponds with field 83C (MT 571) / field 97A (MT 535).
SecuritiesBankCode
The "Statement of Holdings" safekeeping account's bank code.
public string SecuritiesBankCode { get; set; }
Property Value
- string
The Securities Bank Code corresponds with field 83C (MT 571) / field 97A (MT 535).
StatementDate
The "Statement of Holdings" date of the statement.
public SwiftDate StatementDate { get; set; }
Property Value
- SwiftDate
The Date of the Statement corresponds with field 67A (MT 571) / field 98a STAT (MT 535) and is mandatory.
StatementTime
The "Statement of Holdings" time of the statement.
public SwiftTime StatementTime { get; set; }
Property Value
- SwiftTime
The Time of the Statement is part of field 98C STATE (MT 535). There's no corresponding field in MT 571.
TotalValue
Total value of the portofolio inventories of the message.
public decimal TotalValue { get; set; }
Property Value
- decimal
Corresponds with field 34E (MT 571) / field 19A (MT 535). if TotalValueCurrency equals null, there's no TotalValue available!
TotalValueCurrency
Currency of the total value of the portofolio inventories of the message.
public string TotalValueCurrency { get; set; }
Property Value
- string
Corresponds with field 34E (MT 571) / field 19A (MT 535). If TotalValueCurrency equals null, there's no TotalValue available!
Methods
AddFinancialInstrument(SwiftStatementOfHoldingsFinancialInstrument)
public void AddFinancialInstrument(SwiftStatementOfHoldingsFinancialInstrument aFinancialInstrument)
Parameters
aFinancialInstrumentSwiftStatementOfHoldingsFinancialInstrument
IsCompleteField19A()
public bool IsCompleteField19A()
Returns
IsCompleteField28E()
public bool IsCompleteField28E()
Returns
IsCompleteField98a(string, SwiftDate, SwiftTime)
public static bool IsCompleteField98a(string sQualifier, SwiftDate tDate, SwiftTime tTime)
Parameters
Returns
Load(Stream, int)
public static SwiftStatementOfHoldings Load(Stream aStream, int nMT)
Parameters
Returns
Load(TextReader, int)
public static SwiftStatementOfHoldings Load(TextReader aReader, int nMT)
Parameters
aReaderTextReadernMTint
Returns
Load(string, int)
public static SwiftStatementOfHoldings Load(string sFilename, int nMT)
Parameters
Returns
Read(int, SwiftReader)
Reads one or more adjacent SWIFT MT-571/MT-535 messages creating a single new SwiftStatementOfHoldings instance for it.
public static SwiftStatementOfHoldings Read(int nMT, SwiftReader aReader)
Parameters
nMTintEither 535 (for MT-535) or 571 (for MT-571).
aReaderSwiftReader
Returns
Read(int, SwiftReader, bool)
Reads one or more adjacent SWIFT MT-571/MT-535 messages creating a single new SwiftStatementOfHoldings instance for it.
public static SwiftStatementOfHoldings Read(int nMT, SwiftReader aReader, bool fAll)
Parameters
nMTintaReaderSwiftReaderfAllboolIf
true, then any directly adjacent SWIFT messages are automatically merged into the new SwiftStatementOfHoldings instance. This is repeated until the end of the input stream is found. Iffalse, then only the first SWIFT message, terminated by a SWIFT End-Of-Text marker, or the end of the stream is read.
Returns
ReadMessage(SwiftStatementOfHoldingsMT535Reader)
Read a MT-535 message.
public bool ReadMessage(SwiftStatementOfHoldingsMT535Reader aReader)
Parameters
aReaderSwiftStatementOfHoldingsMT535ReaderThe reader that supplies the MT-535 data. Must not be
null.
Returns
ReadMessage(SwiftStatementOfHoldingsMT571Reader)
Read a MT-571 message.
public bool ReadMessage(SwiftStatementOfHoldingsMT571Reader aReader)
Parameters
aReaderSwiftStatementOfHoldingsMT571ReaderThe reader that supplies the MT-571 data. Must not be
null.
Returns
SaveMT535(Stream)
public void SaveMT535(Stream aStream)
Parameters
aStreamStream
SaveMT535(TextWriter)
public void SaveMT535(TextWriter aWriter)
Parameters
aWriterTextWriter
SaveMT535(string)
public void SaveMT535(string sFilename)
Parameters
sFilenamestring
WriteMT535(SwiftWriter, bool)
public void WriteMT535(SwiftWriter aWriter, bool fUpdateTotalValue = false)
Parameters
aWriterSwiftWriterfUpdateTotalValuebool