Class FixmlConverter
FIXML to/from FIX Converter.
Inherited Members
Namespace: OnixS.Fix.Fix2FixmlConverter
Assembly: OnixS.Fix.Engine.dll
Syntax
public class FixmlConverter
Constructors
FixmlConverter(Dictionary)
Initializes the instance.
Declaration
public FixmlConverter(Dictionary dialect)
Parameters
Type | Name | Description |
---|---|---|
Dictionary | dialect | FIX Protocol data dictionary |
FixmlConverter(Dictionary, String)
Initializes the instance.
Declaration
public FixmlConverter(Dictionary dialect, string schemaString)
Parameters
Type | Name | Description |
---|---|---|
Dictionary | 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, Dictionary)
Initializes the instance.
Declaration
public FixmlConverter(string schemaPath, Dictionary dialect)
Parameters
Type | Name | Description |
---|---|---|
String | schemaPath | Path to the folder that contains the custom FIXML Schema. |
Dictionary | 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(Int32, 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 |
---|---|---|
Int32 | groupTag | Custom repeating group tag number |
String | groupBlockName | Custom repeating group block name |
Fix2Fixml(Message, Boolean)
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 |
Boolean | 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 |