Operator StreamToFIXMessage
SPL standard and specialized toolkits > com.ibm.streams.financial 2.0.0 > com.ibm.streams.financial.adapters.fix > StreamToFIXMessage
The StreamToFixMessage operator takes a stream of attributes and converts it to a valid Financial Information eXchange (FIX) message.
A stream is converted into a FIX message by taking the incoming stream of attributes and assigning them to their FIX message destination.
The operator requires that the attributes of the incoming tuple be in the same order as the fields assembled into the FIX message. This is required because the fields that belong to a group must be assembled in order.
Fields used to specify repeating groups need to be declared by using the composite types list<> and tuple<> as seen in the FIXMessageToStream example.
For all messages, the input stream must contain the following attributes BeginString, MsgType, SenderCompID, TargetCompID, and sessionQualifier.
Summary
- Ports
- This operator has 1 input port and 1 output port.
- Windowing
- This operator does not accept any windowing configurations.
- Parameters
- This operator supports 4 parameters.
Required: dictionaryFile
Optional: propertiesFile, numberNoValue, stringNoValue
- Metrics
- This operator does not report any metrics.
Properties
- Implementation
- C++
- Threading
- Always - Operator always provides a single threaded execution context.
- Ports (0)
A set of attributes to convert into a valid FIX message. The attributes in the schema need to be in the same order as they would appear in a valid FIX message.
- Properties
-
- Optional: false
- ControlPort: false
- TupleMutationAllowed: false
- WindowingMode: NonWindowed
- WindowPunctuationInputMode: Oblivious
- Assignments
- This operator allows any SPL expression of the correct type to be assigned to output attributes.
- Ports (0)
-
The output stream consists of a sessionID and a valid FIX message.
- Properties
-
- Optional: false
- TupleMutationAllowed: false
- WindowPunctuationOutputMode: Free
- dictionaryFile
This parameter is the fully qualified path to a file which contains the data dictionary used to interpret the contents of the message.
- Properties
-
- Type: rstring
- Cardinality: 1
- Optional: false
- ExpressionMode: AttributeFree
- propertiesFile
This optional parameter is the fully qualified path to a file which allows us to rename FIX field names as defined by the FIX data dictionary into names more suitable for the streams programmer. Field names can be renamed by using either the field name or field number as defined by the FIX specification. Each field to be renamed goes on a separate line. The content of the file would take on the following format. For example, to rename the TotNoOrders (68) field to totalOrderCount the properties file would need to contain one of the following lines:
totalOrderCount=TotNoOrders totalOrderCount=68
- Properties
-
- Type: rstring
- Cardinality: 1
- Optional: true
- ExpressionMode: AttributeFree
- numberNoValue
This optional parameter is used to provide a value for numeric fields when that field that is requested does not exist.
- Properties
-
- Type: int32
- Cardinality: 1
- Optional: true
- ExpressionMode: AttributeFree
- stringNoValue
This optional parameter is used to provide a value for a string field when the field that is requested does not exist.
- Properties
-
- Type: rstring
- Cardinality: 1
- Optional: true
- ExpressionMode: AttributeFree