go mod download
go build -o ./bin/book; \
DB_PATH=bin/data.sqlite ./bin/book <input.csv> <output.csv>
docker build -t orderbook .
# create the folder with the input
mkdir -p ./dockerdata
cp -rf interfaces/cli/fixtures/1_input_balanced_book.csv ./dockerdata/input.csv
docker run --name orderbooking -v $(pwd)/dockerdata:/data/user orderbook
go fmt ./...
go test ./...
- "top of book" should be saved on the repository (easier / faster fetch)
- match and trade
- test domain order
- more tests overall
- Used a pattern based on DDD so that the code is more readable and manageable