Cont-Kukanov-Stoikov (2014) order-flow imbalance from L1 book events.
https://screamer.readthedocs.io/en/latest/ for the Python reference and full details.
Cont-Kukanov-Stoikov (2014) order-flow imbalance from L1 book events.