{"paper_id":"2310.14144","title":"Unwinding Stochastic Order Flow: When to Warehouse Trades","authors":["Marcel Nutz","Kevin Webster","Long Zhao"],"paper_date":"2023-10-22","paper_type":"theoretical","paper_url":"https://arxiv.org/pdf/2310.14144v2","page_url":"https://thequant.space/flowcharts/unwinding-stochastic-order-flow-when-to-warehouse-trades/","scores":{"empirical_rigor":3,"math_complexity":8.5,"quadrant":"Lab Rats"},"proposes":{"status":"available","statement":"The paper proposes a flexible model for unwinding stochastic order flow that yields a semi‑closed‑form analytic solution and can be implemented numerically as an order‑scheduling algorithm.","quote":"We model and solve this problem for a general class of in-flow processes, enabling us to study in detail how in-flow characteristics affect optimal strategy and core trading metrics. 1.1 Synopsis We propose and solve a flexible model for unwinding an exogenously given order flow, rich enough to serve as a practical order-scheduling algorithm.","summary":"We study how to unwind stochastic order flow with minimal transaction costs. Stochastic order flow arises, e.g., in the central risk book (CRB), a centralized trading desk that aggregates order flows within a financial institution. The desk can warehouse in-flow orders, ideally netting them against…","strategy":null},"assumptions":{"status":"available","items":[{"assumption":"The analysis focuses on a single trading day and assumes the desk holds no overnight positions.","type":"model","stated":"explicit","quote":"For simplicity, our model focuses on a single trading day and a desk that does not hold overnight positions.","support":"full"},{"assumption":"A liquidation constraint XT = 0 must be satisfied at the end of the horizon T.","type":"execution","stated":"explicit","quote":"Hence, we impose the liquidation constraint XT = 0 at the time horizon T corresponding to the end of the closing auction.","support":"full"},{"assumption":"Price impact follows a generalized Obizhaeva–Wang model with time‑dependent but deterministic coefficients λt and βt.","type":"model","stated":"explicit","quote":"6 a generalized Obizhaeva–Wang (OW) model [48] with time-dependent coefficients, dYt = −βtYt dt + λt dQt. We use time-dependent but deterministic coefficients.","support":"full"},{"assumption":"Bid‑ask spread costs are modeled as a quadratic instantaneous cost ½ εt q² on trading speed.","type":"model","stated":"explicit","quote":"For costs related to the bid-ask spread, we use a straightforward model as in [5]: intraday trading incurs a quadratic instantaneous cost 1 2εtq2 t on the trading speed qt = ˙Qt.","support":"full"},{"assumption":"The in‑flow driver can be any martingale; simulations use a discrete i.i.d. Gaussian shock process for tractability.","type":"data","stated":"explicit","quote":"We use a Brownian motion driver σt dWt to keep the model readily understandable to a broader audience but show in Section 2.4 that the results extend to a general martingale driver dMt with minor modifications, thus covering in-flows with jumps, self-excitement, etc. Instead, our experiments use a discrete driver where the inventory is shocked by a block trade approximately every 20 minutes.","support":"full"},{"assumption":"Inventory dynamics are given by Xt = Qt – Zt, where Qt is the cumulative unwind trades (control) and Zt is the cumulative in‑flow.","type":"model","stated":"explicit","quote":"We denote by Qt the cumulative unwind trades up to time t; this is the control variable in our model. The desk’s outstanding position or inventory Xt = Qt −Zt is the difference between the unwind trades and the in-flow.","support":"full"}]},"datasets":{"status":"available","items":[{"name":"LOBSTER limit order book events","provider":"NASDAQ","kind":"order-book","access":"public","period":null,"universe":"S&P 500 stocks","quote":"Our data source is LOBSTER [41], which provides all Nasdaq limit order book events in a standard table format and is aimed at academic research. In line with [15] and the references therein, we find that the market order flow consistently exhibits momentum across the S&P 500 for time steps ranging from ten seconds to one hour.","support":"full","known_id":"lobster"},{"name":"Nasdaq 2022 Intern’s Guide to Trading","provider":"Nasdaq","kind":"synthetic","access":"public","period":null,"universe":null,"quote":"For example, Nasdaq’s The 2022 Intern’s Guide to Trading [42] gives numbers for large-cap stocks of 30 basis points for price impact and 5 basis points for spread costs. 18 These parameters were picked to match the overall statistics (spread and impact cost, volume on close) from Nasdaq’s 2022 Intern’s Guide to Trading [42] and align with the empirical estimates found in [27] and [44]. In-flow parameters.","support":"full"}],"known":[{"id":"lobster","name":"LOBSTER","provider":"LOBSTER","kind":"order-book","access":"commercial","quote":"Our data source is LOBSTER [41], which provides all Nasdaq limit order book events in a standard table format and is aimed at academic research.","mentions":1,"used_in":1}],"sample":{"start":null,"end":null,"market":null,"asset_class":null,"frequency":null},"data_resolution":"synthetic"},"transaction_costs":{"status":"available","modeled":"yes","headline_net_of_costs":null,"detail":"Price impact is captured by a generalized Obizhaeva–Wang model (push factor λt and exponential decay βt) and spread costs are quadratic in trading speed with coefficient εt.","quote":"6 a generalized Obizhaeva–Wang (OW) model [48] with time-dependent coefficients, dYt = −βtYt dt + λt dQt. For costs related to the bid-ask spread, we use a straightforward model as in [5]: intraday trading incurs a quadratic instantaneous cost 1 2εtq2 t on the trading speed qt = ˙Qt.","source":"front_matter","rule":"R3","candidates":{"front_matter":"yes","evidence_card":"yes","evidence_card_quoted":true},"card_detail":"Price impact is captured by a generalized Obizhaeva–Wang model (push factor λt and exponential decay βt) and spread costs are quadratic in trading speed with coefficient εt.","card_quote":"6 a generalized Obizhaeva–Wang (OW) model [48] with time-dependent coefficients, dYt = −βtYt dt + λt dQt. For costs related to the bid-ask spread, we use a straightforward model as in [5]: intraday trading incurs a quadratic instantaneous cost 1 2εtq2 t on the trading speed qt = ˙Qt.","meaning":"costs are part of the reported headline results"},"results":{"status":"available","evaluation_type":"none","findings":[{"finding":"The unwind strategy differs from a standard execution problem by an additive adjustment that depends on the autocorrelation of the order flow; only a martingale (truth‑telling) flow is unwound myopically.","kind":"theoretical","quote":"Compared with a standard execution problem where the order size is known upfront, the unwind strategy exhibits an additive adjustment for projected future in-flows. Its sign depends on the autocorrelation of orders; only truth-telling (martingale) flow is unwound myopically.","support":"full"},{"finding":"A novel metric called internalization regret is introduced; it equals zero for the naive strategy that warehouses all in‑flow and externalizes only at the close.","kind":"theoretical","quote":"We define internalization regret as10 internalization regret = 1 − |terminal in-flow| total variation of out-flow; (3.2) roughly speaking, it is one minus the ratio of minimally necessary over executed out-flow trades. It has value zero if and only if the out-flow is monotone (the desk only sells or only buys in the market), indicating that the desk captured all possible internalization.","support":"full"},{"finding":"Simulations show that higher initial impact states reduce the size of opening block trades and shift volume later in the day to exploit impact reversal.","kind":"performance","quote":"For increasing values of y, the block trade is reduced; volume is deferred to exploit impact reversal. For high initial impact, reducing the impact state takes priority over reducing inventory and the opening trade adds to the initial inventory rather than hedging it.","support":"full"},{"finding":"Empirical analysis of LOBSTER data finds that market order flow exhibits momentum (positive autocorrelation) across S&P 500 stocks for time steps from ten seconds to one hour.","kind":"statistical","quote":"In line with [15] and the references therein, we find that the market order flow consistently exhibits momentum across the S&P 500 for time steps ranging from ten seconds to one hour.","support":"full"}],"reported_performance":null,"out_of_sample":{"method":"none","headline_out_of_sample":null}},"independent_evidence":{"status":"available","supports":[],"contradicts":[],"qualifies":[],"compared_with":16,"citations":{"cited_by_in_corpus":12,"by_independent_authors":10,"how_cited":{"used_as_baseline":0,"uses_method_or_data":2,"extends":0,"discusses_findings":0,"mentions":3,"unclassified":7},"independent_papers":[{"paper":{"paper_id":"2501.15106","title":"In-Context Operator Learning for Linear Propagator Models","paper_date":"2025-01-25","authors":["Tingwei Meng","Moritz Voß","Nils Detering","Giulio Farolfi","Stanley Osher","Georg Menz"],"empirical_rigor":4,"page_url":"https://thequant.space/flowcharts/in-context-operator-learning-for-linear-propagator-models/"},"how":"uses_method_or_data","quote":null},{"paper":{"paper_id":"2407.10561","title":"Nash Equilibrium between Brokers and Traders","paper_date":"2024-07-15","authors":["Álvaro Cartea","Sebastian Jaimungal","Leandro Sánchez-Betancourt"],"empirical_rigor":2,"page_url":"https://thequant.space/flowcharts/nash-equilibrium-between-brokers-and-traders/"},"how":"uses_method_or_data","quote":null}],"scope":"Citations between papers in this corpus only; citations from outside it are not counted."}},"implementation":{"status":"available","public":true,"code_url":"https://github.com/KevinThomasWebster/UnwindingStochasticOrderFlow","note":null},"replication":{"status":"none_found","card":null,"note":"No replication of this paper has been run by thequant.space yet."},"extraction":{"text_source":"fulltext","model":"openai/gpt-oss-120b","version":2,"extracted_at":"2026-11-14T20:00:49Z"},"provenance":{"claims":"Everything here is what the authors state in the paper. Nothing was re-run or reproduced by the platform.","quotes":"Assumptions, datasets, cost detail and findings were extracted by a language model. Every quote is verbatim paper text. Where an item has `support`, \"full\" means every figure in it appears in the quoted sentences and \"partial\" means a figure is stated elsewhere in the paper; items with a figure found nowhere in the paper were discarded.","datasets_known":"datasets.known lists well-known vendors and public datasets by a stable id, found by a dictionary over the full text where the sentence says the data is used; it is independent of the model and covers only names in the dictionary.","flags":"transaction_costs.modeled, results.evaluation_type and results.out_of_sample.method are platform classifications (structured-decision models); see https://thequant.space/score-guide/#penalty-flags","comparisons":"supports / contradicts / qualifies are a language model's reading of two papers' quoted findings, restricted to closely related papers that share no author. They are pointers to read, not verified replications, and coverage is partial.","implementation":"code_url is a repository the paper itself presents as its own (rule-scored, ambiguous cases judged by a model), checked for liveness when it was recorded."},"docs":"https://thequant.space/agents/"}