Re: [Quickfix-developers] QuickFIX Log Analysis
Brought to you by:
orenmnero
From: Joerg T. <Joe...@ma...> - 2004-08-30 09:41:29
|
> What you're looking for is really a perfect job for a Perl script > though. Here's the skeleton of something that can read a quickfix > message store (or any file that just contains raw FIX messages one > per-line) and parses each message into a hash of field IDs and values. > The rest it up to you: > > #!/usr/bin/perl -w > use strict; > while (<>) { > chomp; > my %MSG = map { split /=/, $_, 2 } split /\001/; > # Do something with %MSG > } > Using Perl has the additional advantage, that it also runs on a lot of non-UNIX systems. But also have a look at the Python and Ruby scripting languages. Actually for these languages there are native QF APIs so can avoid all the parsing stuff but use QF directly from Python or Ruby. Since I am neither a Python or Ruby programmers, others from the list may contribute the scripts. BTW, Caleb, did you consider adding your script snippets to the WikiFIX site? It is actually meant as an repository for this kind of stuff. Cheers, Jörg -- Joerg Thoennes http://macd.com Tel.: +49 (0)241 44597-24 Macdonald Associates GmbH Fax : +49 (0)241 44597-10 Lothringer Str. 52, D-52070 Aachen |