Skip to content

mclaudt/ordersmatcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stock Orders Matcher

Intro

Reads client.txt and orders.txt from resources. Produces result.txt with final account states.

How to run

sbt run

Features

  • Self-orders prevention (covered by unit-test also).
  • Only full match (price and quantity) is allowed for simplicity.
  • FIFO guarantees for the same price and quantity.
  • Negative stock accounts are prevented (covered by unit-test also).
  • Implemented in Akka Actors to make parallelization of operations possible.
  • Features become and stash patterns from Akka Actors.
  • Debug level is on by default, to play with market evolution.

About

Stock orders matcher based on Akka Actors.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages