Skip to content

Instantly share code, notes, and snippets.

View kbai's full-sized avatar

Kangchen Bai kbai

  • Caltech
  • Pasadena
View GitHub Profile
@kbai
kbai / engine.c
Created October 5, 2019 14:26 — forked from druska/engine.c
Quant Cup 1's winning order book implementation
/*****************************************************************************
* QuantCup 1: Price-Time Matching Engine
*
* Submitted by: voyager
*
* Design Overview:
* In this implementation, the limit order book is represented using
* a flat linear array (pricePoints), indexed by the numeric price value.
* Each entry in this array corresponds to a specific price point and holds
* an instance of struct pricePoint. This data structure maintains a list