A Brier bot does not bet. It quotes — posting a bid and an ask, capturing the spread, and managing the inventory it accumulates. The edge is not opinion; it is the math of where to place those quotes and when to pull them. This is the model behind the engine.
Everything starts with one number: the price at which the bot is indifferentto trading. Not the market mid — the bot's own fair value, shifted by how much inventory it is already holding. Avellaneda & Stoikov (2008) gave the canonical form:
r = s − q · γ · σ² · (T − t)
If the bot is long, r drops below mid → it quotes to sell. If short, r rises above mid → it quotes to buy. The bot is always leaning back toward flat. That lean is the whole game.
The total distance between bid and ask comes from two terms:
δ = γ · σ² · (T − t) + (2/γ) · ln(1 + γ/κ)
The first term widens the spread when the world is volatile. The second is the structural profit of being the liquidity provider — it persists even if the bot is risk-neutral. κ measures how much traders chase price: low κ means they'll cross a wide spread, high κ means they won't.
Prediction markets settle at exactly $0 or $1. There is no hedge for "the probability Trump wins" — no underlying to short. So inventory risk is managed by hard limits. Guéant–Lehalle–Fernandez-Tapia (2013) bound it:
|q| ≤ Q
As the bot approaches Q, its spreads widen automatically; at Q, quotes disappear. Short 100k YES at $0.40 and the market resolves YES? You owe $100k, collected $40k → −$60k from one market. Q is what stops that.
Some of the people hitting your quote know more than you — campaign staff with private polls, an athlete who knows their own injury. The spread is the tax that lets you survive trading against them. Glosten–Milgrom (1985): at a coin-flip price, the minimum spread equals the fraction of informed flow.
spread(p = 0.5) ≈ μ
Brier watches VPIN (volume-synchronized probability of informed trading) as a real-time toxicity alarm. When buy/sell flow goes sharply imbalanced, informed money is arriving — the bot widens or pulls quotes before it gets cleaned out.
The executor combines four layers on every quote:
The most important latency metric is not placing orders — it is cancellingthem before an informed trader fills a stale quote. Brier's safety stack: