Skip to content

radzevich/OrderBook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OrderBook

Requirements

Functional requirements

  1. Update BBO
  2. Replace bids/asks (generic container as a source)
  3. Clear the book
  4. Check if book is empty
  5. Get the book state
  6. Make string representation of the book state

NF Requirements

Partial update:

Best bid/offer (BBO) update

Valid book state invariants:

  • Price levels are unique
  • Price levels are in correct order in any moment of time

Input data guarantees and tips

  • Prices are unique
  • Prices are absolute
  • Prices with zero values for levels which are not in book can appear and should be ignored
  • Prices with zero values for levels which are in book should be considered as removing of price level
  • If new best bid is less, than current - the current bid level should be removed, otherwise - moved down in the book
  • If new best ask is greater, than current - the current ask level should be removed, otherwise - moved down in the book
  • Thread safety is not required

About

OrderBook

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published