Class FixMessageUtil
FixMessage helper class.
Inheritance
Inherited Members
Namespace: FixAntenna.Fix.Message
Assembly: FixAntenna.Message.dll
Syntax
public class FixMessageUtil
Methods
IsEqualIgnoreOrder(FixMessage, FixMessage)
Compares two message, the order of tag is ignored.
Declaration
public static bool IsEqualIgnoreOrder(FixMessage message1, FixMessage message2)
Parameters
Type | Name | Description |
---|---|---|
FixMessage | message1 | the message |
FixMessage | message2 | the message |
Returns
Type | Description |
---|---|
System.Boolean |
IsGapFill(FixMessage)
Returns true if message has the 123 tag and value is equals 'Y'.
Declaration
public static bool IsGapFill(FixMessage message)
Parameters
Type | Name | Description |
---|---|---|
FixMessage | message | the message |
Returns
Type | Description |
---|---|
System.Boolean |
IsIgnorableMsg(FixMessage)
Methods checks if message has 4 or A type.
Declaration
public static bool IsIgnorableMsg(FixMessage message)
Parameters
Type | Name | Description |
---|---|---|
FixMessage | message | the message |
Returns
Type | Description |
---|---|
System.Boolean | true if it is |
IsLogon(FixMessage)
Checks if message type is login.
Declaration
public static bool IsLogon(FixMessage message)
Parameters
Type | Name | Description |
---|---|---|
FixMessage | message | FIX message |
Returns
Type | Description |
---|---|
System.Boolean |
IsLogout(FixMessage)
Checks if message type is logout.
Declaration
public static bool IsLogout(FixMessage message)
Parameters
Type | Name | Description |
---|---|---|
FixMessage | message | FIX message |
Returns
Type | Description |
---|---|
System.Boolean |
IsMessageType(FixMessage, Byte[])
Checks the message type.
Declaration
public static bool IsMessageType(FixMessage message, byte[] msgType)
Parameters
Type | Name | Description |
---|---|---|
FixMessage | message | the message |
System.Byte[] | msgType | the message type |
Returns
Type | Description |
---|---|
System.Boolean |
IsPosDup(FixMessage)
Returns true if message has the 43 tag.
Declaration
public static bool IsPosDup(FixMessage message)
Parameters
Type | Name | Description |
---|---|---|
FixMessage | message | the message |
Returns
Type | Description |
---|---|
System.Boolean |
IsResetLogon(FixMessage)
Returns true if message is logon and has 34=1 and 141=Y
Declaration
public static bool IsResetLogon(FixMessage message)
Parameters
Type | Name | Description |
---|---|---|
FixMessage | message | the message |
Returns
Type | Description |
---|---|
System.Boolean |
IsSeqReset(FixMessage)
Checks if message type is logout.
Declaration
public static bool IsSeqReset(FixMessage message)
Parameters
Type | Name | Description |
---|---|---|
FixMessage | message | FIX message |
Returns
Type | Description |
---|---|
System.Boolean |
IsTagValueEquals(FixMessage, Int32, Byte[])
Checks is tag exist and value equals.
Declaration
public static bool IsTagValueEquals(FixMessage message, int tag, byte[] value)
Parameters
Type | Name | Description |
---|---|---|
FixMessage | message | the message |
System.Int32 | tag | the tag id |
System.Byte[] | value | the tag value |
Returns
Type | Description |
---|---|
System.Boolean |
IsTagValueEquals(FixMessage, Int32, String)
Checks is tag exist and value equals.
Declaration
public static bool IsTagValueEquals(FixMessage message, int tag, string value)
Parameters
Type | Name | Description |
---|---|---|
FixMessage | message | the message |
System.Int32 | tag | the tag id |
System.String | value | the tag value |
Returns
Type | Description |
---|---|
System.Boolean |
IsTagValueEquals(TagValue, String)
Compare Field's raw value to passed String constant.
Declaration
public static bool IsTagValueEquals(TagValue field, string value)
Parameters
Type | Name | Description |
---|---|---|
TagValue | field | the field |
System.String | value | the String constant |
Returns
Type | Description |
---|---|
System.Boolean |