Chicago Trading CompanyData Engineer · Technical ScreenCodemia practiceMeasure Fill Markouts by Exchange at Several Time Horizons
Given a fills table (fill_id, series_id, exchange, side, qty, price, ts_ms) and a quotes table of mid prices (series_id, ts_ms, mid), write SQL that computes total and per-contract markout PnL for each exchange at 100 ms, 1 s and 10 s after each fill, using the latest mid at or before each horizon.
Medium
Data Manipulation (SQL/Python)