Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 710 Bytes

README.md

File metadata and controls

33 lines (23 loc) · 710 Bytes

Quote Parser

A program to parse and print quote messages from a market data feed. See 'problem.txt' for a full description of the problem.

Run with Docker:

 docker run ninifaroux/quote-parser

To sort the output based on the quote accept time:

 docker run -e sort=-r ninifaroux/quote-parser

Build and run with Stack:

 stack build
 stack exec -- stock-parser-exe "./data/mdf-kospi200.20110216-0.pcap"

To sort the output based on the quote accept time append the '-r' flag after the filepath:

stack exec -- stock-parser-exe "./data/mdf-kospi200.20110216-0.pcap" -r

More generally:

stack exec -- stock-parser-exe <path-to-file> [-r]