Abstract
This article presents a polynomial-time algorithm for clearing and pricing combinatorial markets that feature valuations for singletons and pairs (swaps). Applied to the futures opening auction problem, the method addresses the operational risks associated with "rolling" positions forward. By reformulating the auction as a minimum cost flow problem, the authors guarantee consistent market prices and eliminate arbitrage opportunities. Computational tests on historical EUREX data demonstrate a 300x speedup over traditional integer programming methods, making the approach suitable for high-frequency production environments.
Introduction
In futures markets, traders often need to roll their positions—for example, selling a contract expiring in June to buy one expiring in August. To mitigate the risk of one leg of the trade failing (slippage), exchanges offer "combination" orders that execute both swaps simultaneously.
The challenge arises during the opening auction, the period just before the market opens when orders have accumulated. Standard auction algorithms often clear individual contracts and combinations separately or using heuristics, frequently leading to price inconsistencies. These gaps occur when the price of a swap does not equal the difference between the two individual contracts, creating "free money" arbitrage opportunities and discouraging liquidity. While general combinatorial auctions are NP-hard, this paper identifies that a market structure limited to singletons and pairs can be solved efficiently using network flow theory.
Methodology: Minimum Cost Flow Formulation
The core innovation is the transition from complex integer programming to a Minimum Cost Flow (MCF) formulation. This is achieved through three key steps:
1. Network Modeling
Individual contracts are treated as nodes in a graph, and orders are modeled as directed arcs between them. A "buy" order for a single contract is an arc from a special source node to a contract node, while a "swap" is an arc between two contract nodes.
As detailed in the table above, the direction and endpoints of the arcs define whether an order is a buy or sell and whether it involves a single contract or a combination.
2. Total Unimodularity
Because the problem is modeled as a node-arc incidence matrix, the constraint matrix is "totally unimodular." This mathematical property guarantees that a standard Linear Program (LP) will return integer solutions, even though the orders themselves are discrete units. This allows for polynomial-time clearing without the computational overhead of integer solvers.
3. Hierarchical Objectives and Dual Pricing
The exchange aims to maximize economic surplus (total value) and trade volume. The authors combine these into a single weighted objective function. Crucially, they prove that the "shadow prices" (dual variables) of this optimization can be used to derive fair, consistent market-clearing prices for every product simultaneously.
Key Results
The researchers evaluated the approach using synthetic data and 40 historical instances reconstructed from the EUREX order books.
- Massive Speedup: On real-world data, the new algorithm averaged roughly 3 milliseconds per instance. The previous state-of-the-art integer programming model took nearly 1 second (918ms) for the same tasks— a performance increase of over 300x.
- Scalability: Even with 10,000 orders, the system cleared the market in under 10 milliseconds using standard network simplex solvers.
- Arbitrage Elimination: The model successfully identifies and executes "matching cycles" that previous models missed, ensuring that no risk-free profit opportunities remain for high-frequency arbitrageurs at the expense of regular traders.
Conclusion and Limitations
By mapping the "singleton and swap" structure to network flow theory, the authors provide a solution that is both theoretically sound and practically superior for modern exchanges. However, the efficiency of this model relies on this specific structure; introducing "basket" orders (three or more items) would break total unimodularity and return the problem to NP-hard status. Additionally, the current model allows for partial execution and does not yet support "fill-or-kill" (all-or-nothing) constraints common in some trading environments.
Summary updated