Skip to main content
Pro Feature. Requires a Pro or Ultra subscription. Get started at api.mathematicalcompany.com

Market-Making Arbitrage

Quote on one exchange (earn the bid-ask spread), hedge on another exchange (neutralize directional risk). Combines Avellaneda-Stoikov market making with cross-venue delta hedging.

How It Works

  1. Generate quotes on the quoting exchange using Avellaneda-Stoikov (reservation price + optimal spread)
  2. Track net position (delta) from fills
  3. When |delta| > hedge_threshold: submit aggressive FOK orders on the hedge exchange
  4. Result: you earn the spread on exchange A while staying delta-neutral via exchange B

MMArbConfig

Pipeline: mm_arb

Returns list[Quote]: generates quotes for the quoting exchange. Hedges are side-effects via the engine.

Example

MM Arb composes existing reservation_price() and optimal_spread() Rust functions. See the Market Making docs for details on Avellaneda-Stoikov parameters.