Protocol::FIX::Message - FIX protocol message definition
serialize($self, $values)
Serializes provided values into string.
$message->serialize([ field => 'value', component => [ other_field => 'value-2', group_field => [ [some_field_1 => 'value-3.1.1', some_field_1 => 'value-3.1.2'], [some_field_1 => 'value-3.2.1', some_field_1 => 'value-3.2.2'], ], ], ]);
Error will be thrown if values do not conform the specification (e.g. string provided, while integer is expected).
The managed fields (BeginString, MsgType, and CheckSum) are calculated and added to serialized string automatically.
new($class, $name, $category, $message_type, $composites, $protocol)
Creates new Message (performed by Protocol, when it parses XML definition)
To install Protocol::FIX, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Protocol::FIX
CPAN shell
perl -MCPAN -e shell install Protocol::FIX
For more information on module installation, please visit the detailed CPAN module installation guide.