← Research

Execution & trading systems

USO–WTI ETF/Futures Arbitrage

A UIUC team project exploring how a fair-value dislocation strategy changes when execution, inventory, venue selection, and order safety become real implementation constraints.

C++TT Strategy StudioNASDAQIEXCME
Attribution: this was a team project. My primary contribution was development and refinement of the ETF-arbitrage strategy—not sole ownership of the full market-data pipeline or every strategy in the repository.

Trading idea

The strategy uses CME crude-oil futures as a configurable fair-value proxy for USO and looks for threshold dislocations between that reference and executable USO quotes. The implementation then has to decide where and how to trade rather than stopping at signal detection.

ETF arbitrage event-stream visualization showing cross-venue quotes, trades, and detected arbitrage opportunities
Event-stream visualization from the team project. Cross-venue bid/ask activity and detected opportunities make the execution problem concrete: signal detection has to coexist with venue state and rapidly changing quotes.

My contribution

  • Refined the C++ ETF-arbitrage strategy and its execution loop.
  • Added inventory-aware fair-value skew so current risk changes the price at which the strategy is willing to trade.
  • Selected the best available USO quote across venues rather than assuming a single execution destination.
  • Added position-aware sizing and limit pricing, runtime-tunable thresholds/aggressiveness, working-order guards, and exit-to-flat logic.
  • Iterated through debugging and historical market-data testing in Strategy Studio.

Why it matters

The project was useful because it made a familiar lesson concrete: a trading signal is only one component of a strategy. Inventory, partial fills, aggressiveness, venue choice, latency, order state, and risk controls determine how the idea behaves when it interacts with an actual market.

CME proxy→fair value→inventory skew→best venue→risk-aware order
Strategy Studio backtest order timeline and cumulative profit and loss chart
Strategy Studio backtest output. Order activity and cumulative simulated P&L are shown as project diagnostics, not as live-trading performance. The underlying repository preserves the broader team context and implementation details.

Inspect the repository ↗