Class FixmlConverter
FIXML to/from FIX Converter.
Inherited Members
Namespace: OnixS.Fix.Fix2FixmlConverter
Assembly: OnixS.Fix.Engine.dll
Syntax
public class FixmlConverter
Constructors
FixmlConverter(IMessageInfoDictionary)
Initializes the instance.
Declaration
public FixmlConverter(IMessageInfoDictionary dialect)
Parameters
Type | Name | Description |
---|---|---|
IMessageInfoDictionary | dialect | FIX Protocol data dictionary |
FixmlConverter(IMessageInfoDictionary, string)
Initializes the instance.
Declaration
public FixmlConverter(IMessageInfoDictionary dialect, string schemaString)
Parameters
Type | Name | Description |
---|---|---|
IMessageInfoDictionary | dialect | FIX Protocol data dictionary |
string | schemaString | Plain text string with custom FIXML Schema |
FixmlConverter(ProtocolVersion)
Initializes the instance.
Declaration
public FixmlConverter(ProtocolVersion version)
Parameters
Type | Name | Description |
---|---|---|
ProtocolVersion | version | Version of FIX Protocol |
FixmlConverter(ProtocolVersion, string)
Initializes the instance.
Declaration
public FixmlConverter(ProtocolVersion version, string schemaString)
Parameters
Type | Name | Description |
---|---|---|
ProtocolVersion | version | Version of FIX protocol |
string | schemaString | Plain text string with custom FIXML Schema |
FixmlConverter(string, IMessageInfoDictionary)
Initializes the instance.
Declaration
public FixmlConverter(string schemaPath, IMessageInfoDictionary dialect)
Parameters
Type | Name | Description |
---|---|---|
string | schemaPath | Path to the folder that contains the custom FIXML Schema. |
IMessageInfoDictionary | dialect | FIX Protocol data dictionary |
FixmlConverter(string, ProtocolVersion)
Initializes the instance.
Declaration
public FixmlConverter(string schemaPath, ProtocolVersion version)
Parameters
Type | Name | Description |
---|---|---|
string | schemaPath | Path to the folder that contains the custom FIXML Schema. |
ProtocolVersion | version | Version of FIX protocol |
Methods
AddCustomMessage(string, string)
Adds a custom message. If there is already such a message, then it will be replaced.
Declaration
public void AddCustomMessage(string msgType, string messageName)
Parameters
Type | Name | Description |
---|---|---|
string | msgType | Custom message type |
string | messageName | Custom message name |
AddCustomRepeatingGroup(int, string)
Adds a custom repeating group. If there is already such a repeating group, then it will be replaced.
Declaration
public void AddCustomRepeatingGroup(int groupTag, string groupBlockName)
Parameters
Type | Name | Description |
---|---|---|
int | groupTag | Custom repeating group tag number |
string | groupBlockName | Custom repeating group block name |
Fix2Fixml(Message, bool)
Converts the given FIX message to FIXML.
Declaration
public string Fix2Fixml(Message fixMsg, bool formatting = true)
Parameters
Type | Name | Description |
---|---|---|
Message | fixMsg | Input FIX message |
bool | formatting | Option to turn on/off the formatting of the resulting FIXML message. Default value is true. |
Returns
Type | Description |
---|---|
string | FIXML message |
Fixml2Fix(string)
Converts the given FIXML message to FIX.
Declaration
public Message Fixml2Fix(string fixmlMsg)
Parameters
Type | Name | Description |
---|---|---|
string | fixmlMsg | Input FIXML message |
Returns
Type | Description |
---|---|
Message | FIX message |