prefix-1.1.5 is not a library.
PREtty FIX
A commandline based pretty printer for FIX messages.
Based on a FIX4.4 dictionary, but is usable with all versions.
Usage
input can be passed in as an argument or piped in:
|
outputs:
BeginString = FIX4.4
Account = test
Symbol = EUR/USD
CheckSum = 123
Currently can use ^ and | and SOH as delimiters.
Use prefix --help
or man prefix
for more details.
Piping
Unix piping greatly increases the potential uses. For example: Parsing a log file and aligning the values for easy scan reading.
# Pipe the file contents to prefix which parses and pipes them to awk, which prints them aligned.
| |
outputs:
BeginString FIX.4.4
Account TEST
Symbol EUR/USD
ExecType PartialFill
Or summarising a log file that includes FIX messages.
# Pipe the file contents to prefix which then summarises the FIX messages by instrument
| | |
outputs:
4 NewOrderSingle EUR/USD
4 ExecutionReport EUR/USD
2 NewOrderSingle USD/KRW
2 ExecutionReport USD/KRW
Installation
Can be installed using:
cargo install prefix
Issues
Any bugs/ requests can be added to the issues page on the github repository.