ohlc-bar-matching-engine
Deterministic Intrabar Path & Gap Execution
Processes opening gaps (prevClose → open) at the opening price without skipping multiple crossed orders, then walks open → low → high → close on bullish bars and open → high → low → close on bearish bars.
import { createAccount, fill, processBar } from 'ohlc-bar-matching-engine';