Interface IMessage
Generic FIX Message.
Inherited Members
Namespace: OnixS.Fix
Assembly: OnixS.Fix.Engine.dll
Syntax
public interface IMessage : IFieldSet, IEnumerable<Field>, IEnumerable
Properties
IsFlatMessage
Returns true
if this is a FlatMessage instance, otherwise - false
.
Declaration
bool IsFlatMessage { get; }
Property Value
Type | Description |
---|---|
bool |
|
SenderCompId
The SenderCompID (tag 49) field value.
Declaration
string SenderCompId { get; }
Property Value
Type | Description |
---|---|
string | SenderCompID (tag 49) field value |
SeqNum
Message sequence number - the MsgSeqNum (tag 34) field value.
Declaration
int SeqNum { get; set; }
Property Value
Type | Description |
---|---|
int | Message sequence number |
TargetCompId
The TargetCompID (tag 56) field.
Declaration
string TargetCompId { get; }
Property Value
Type | Description |
---|---|
string | TargetCompID (tag 56) field value |
Type
Message type - the MsgType (tag 35) field value.
Declaration
string Type { get; }
Property Value
Type | Description |
---|---|
string | Message type |
Version
FIX Protocol version.
Declaration
ProtocolVersion Version { get; }
Property Value
Type | Description |
---|---|
ProtocolVersion | FIX Protocol version |
Methods
Clone()
Declaration
IMessage Clone()
Returns
Type | Description |
---|---|
IMessage |
CompareType(char)
Returns true if the message type value is equal to the given char value, otherwise it returns false. The method can help to write GC-free code.
Declaration
bool CompareType(char type)
Parameters
Type | Name | Description |
---|---|---|
char | type | Message type to compare |
Returns
Type | Description |
---|---|
bool | True if the message type value is equal to the given string value |
CompareType(string)
Returns true if the message type value is equal to the given string value, otherwise it returns false. The method can help to write GC-free code.
Declaration
bool CompareType(string type)
Parameters
Type | Name | Description |
---|---|---|
string | type | Message type to compare |
Returns
Type | Description |
---|---|
bool | True if the message type value is equal to the given string value |
GetStructuredMessage(IMessageInfoDictionary, MessageValidationFlags)
Returns the Message instance create from the given FlatMessage.
Declaration
Message GetStructuredMessage(IMessageInfoDictionary dictionary, MessageValidationFlags parsingFlags)
Parameters
Type | Name | Description |
---|---|---|
IMessageInfoDictionary | dictionary | Dictionary to be used during the Message creation |
MessageValidationFlags | parsingFlags | Parsing flags |
Returns
Type | Description |
---|---|
Message | Message instance |
IsSessionLevel()
Returns true
if this is a session-level message, otherwise - false
.
Declaration
bool IsSessionLevel()
Returns
Type | Description |
---|---|
bool |
|
ToRawFixString()
Returns string representation of the message. This method will re-calculate the BodyLength and Checksum according to the message.
Declaration
string ToRawFixString()
Returns
Type | Description |
---|---|
string | string representation of the message |