Building a Polymarket Market Maker in Rust: Managing Inventory and Adverse Selection
A market maker on Polymarket can capture a bid-ask spread yet still lose money if its fills occur just before the price moves against it. The article argues that the core difficulty lies not in spread calculation but in managing inventory and adverse selection between trades. Quoted spreads are treated as potential revenue rather than guaranteed profit, since single-sided fills leave directional exposure and fees and financing costs also apply. An inventory-aware approach shifts a reservation price away from fair value in proportion to net holdings, making the bot less eager to add to an existing position. The author provides a Rust example that calculates theoretical bid and ask quotes from fair value, inventory, skew, spread, and tick size, though it is only a standalone quote model rather than a full exchange client.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in