Predict Market Desk Connect to Dexsport
DexsportMarketsMechanics Connect to Dexsport

Home › Mechanics › Order books versus AMMs in prediction markets

Order book or AMM: two ways a market sets its price

Order book or AMM: two ways a market sets its price — Dexsport

Two market designs

Every market, whether it lists shares, currencies, sports outcomes or tokens, has to answer one question continuously: at what price will the next trade happen? There are two broad families of answer. The first is the order book, where buyers and sellers post the prices at which they are willing to trade, and a matching engine pairs them when their offers cross. The second is the automated market maker, where no counterparty needs to appear at all. Instead, a pool of capital sits in a smart contract governed by a formula, and that formula quotes a price for anyone who wants to trade against it.

The distinction matters more than it first appears. An order book is a record of intentions. It is a queue of people saying "I will buy at this price" or "I will sell at that price," and the price you actually get depends on how many of those intentions are queued ahead of you. An AMM is not a record of intentions at all. It is a standing offer, always open, whose terms shift as it is used. Nobody on the other side of your AMM trade decided to trade with you; the pool simply repriced itself according to its rule.

Both designs solve the same underlying problem, which is that buyers and sellers rarely want to trade at the same moment in the same size. The order book solves it by waiting: it holds unmatched orders until someone takes them. The AMM solves it by guaranteeing a counterparty at all times, at a cost. That cost is the slippage you pay for immediacy, and the compensation the liquidity providers earn for standing on the other side.

For a reader trying to judge a crypto sportsbook or a betting exchange, the design question is not academic. It determines whether you can always get a bet on, how much a large stake moves the price against you, who is taking the other side of your wager, and what happens when the market is thin or volatile. The two designs fail in different ways, and understanding those failure modes is more useful than memorising either one. It is also worth saying plainly that where you can legally place such bets depends on your jurisdiction, and nothing here is legal advice.

How an order book works

An order book has two sides. The bid side lists the prices at which people are willing to buy, sorted from highest to lowest. The ask side lists the prices at which people are willing to sell, sorted from lowest to highest. The gap between the best bid and the best ask is the spread, and it is the first thing a trader looks at. A tight spread suggests a liquid market; a wide one suggests thin interest or high uncertainty. When a new buy order arrives at or above the best ask, it executes immediately against the resting sell orders, starting with the cheapest and working upward. That is why a large order can fill at several different prices in a single instant.

Consider a simplified example. Suppose the best asks are 100 units at 2.00, then 200 units at 2.02, then 500 units at 2.05. If you place a market buy for 250 units, you take the first 100 at 2.00 and the next 150 at 2.02, giving an average fill of about 2.012. The difference between that average and the headline price of 2.00 is your slippage, and it exists because the book only had so much depth at the top. A limit order, by contrast, lets you specify the worst price you will accept. If you set a limit at 2.02, you get the first 100 at 2.00 and 150 at 2.02, and the remainder of your order either rests on the book or is cancelled depending on how it was placed.

The book is continuously rebuilt by market makers, who are the professionals whose job is to keep both sides populated. They post bids slightly below and asks slightly above what they believe the fair value to be, earning the spread on each round trip while accepting the risk that the price moves against their inventory. Their quotes are not static. They widen when volatility rises, they pull back when they are carrying too much risk, and they adjust as news arrives. A book with many competing market makers tends to have a tight spread because each one must undercut the others to win flow. A book with one or two is fragile.

Depth is the concept that ties this together. The headline price tells you almost nothing about what a large order will cost. What matters is how much size sits at each level. A book can show a tight spread at the top and almost nothing behind it, so a modest order sweeps through several levels and moves the price sharply. Experienced traders look past the best bid and ask to the cumulative depth, and they watch for signs of spoofing, where orders are posted and withdrawn to create a false impression of interest.

Order books also have a queue problem. When you place a limit order at a price where others are already waiting, you join the back of the queue and only fill once everyone ahead of you has been served. That is fine in a calm market, but in a fast one the price may move away before your turn arrives, leaving you unfilled while the market runs. This is the fundamental trade-off of the design: you get price certainty with a limit order but not execution certainty, and execution certainty with a market order but not price certainty. No book can give you both at once.

How an AMM works

An automated market maker replaces the queue with a formula. The most common is the constant product rule, written as x times y equals k, where x and y are the quantities of two assets in a pool and k is a constant that must hold after every trade. A trader who wants to buy asset A deposits asset B into the pool and withdraws asset A. As A leaves the pool and B enters, A becomes scarcer and B more plentiful, so the formula pushes the price of A up. The price is not set by anyone; it is simply the ratio of the two reserves at that moment.

The immediate consequence is that every trade moves the price. There is no book of resting orders to absorb size at a fixed level. The pool quotes a price, you trade against it, and the pool has a new price. The larger your trade relative to the pool, the worse your average fill. This is the AMM's version of slippage, and it is predictable in advance: given the pool size and the formula, you can calculate exactly what a trade of a given size will cost before you submit it. That transparency is one of the design's genuine strengths.

Liquidity providers, or LPs, are the people who deposit both assets into the pool and earn a share of the trading fees. They are the AMM's answer to the market maker, but their role is passive. They do not quote prices, manage inventory or react to news. They simply supply capital and let the formula do the work. In return they earn fees proportional to their share of the pool, but they also absorb a specific risk called impermanent loss, which arises because the pool constantly rebalances as prices move. If one asset rises sharply against the other, the LP ends up holding more of the weaker asset and less of the stronger one than they started with, and the fees may or may not compensate for that.

The AMM's great advantage is that it never sleeps and never needs a counterparty to show up. A trade can execute at three in the morning against a pool that no human is watching. For thin or long-tail markets, where an order book might sit empty for hours, this is transformative. It also means the price is always available, which is precisely what a bettor wants when an event is about to resolve and they need to act quickly. There is no waiting for someone to take the other side.

The trade-offs are equally clear. AMMs are capital-inefficient: a pool must hold a large reserve to offer decent pricing on modest trades, because the formula's slippage grows quickly with trade size. They are also exposed to arbitrage. When the pool's price drifts from the wider market price, arbitrageurs trade against it until the two converge, extracting value from the LPs in the process. And because the formula is mechanical, it cannot exercise judgement. It will happily sell an asset at a price that a human market maker would have recognised as stale within seconds of a news event. Modern designs add concentrated liquidity, dynamic fees and oracle inputs to soften these problems, but the underlying logic remains the same.

Price impact differences

The sharpest practical difference between the two designs is how they handle size. In an order book, the price impact of your trade depends on what is actually resting on the book at that moment. If there is deep liquidity, a large order might fill with barely any movement. If the book is thin, the same order could sweep through many levels and move the price substantially. The impact is not a smooth function of your order size; it is lumpy and depends on the specific orders present, some of which may vanish the instant you try to trade against them.

In an AMM, price impact is a smooth, deterministic function of trade size relative to pool depth. For a constant product pool, doubling the size of your trade roughly doubles your slippage in the small-trade regime, and the relationship worsens as the trade grows. You can plot it precisely. This makes AMM trading easier to reason about in advance: you know before you click what the average price will be, and you can size your trade to keep the impact within a limit you find acceptable. There is no hidden queue and no spoofing, because there is no queue to spoof.

The edge case that separates them most clearly is the sudden large order. On an order book, a very large market order can clear the visible depth and leave the price gapping to the next level, sometimes far away. Market makers who see the order coming may pull their quotes, widening the spread precisely when liquidity is most needed. This is a well-documented behaviour in stressed markets, and it is why books can appear liquid in calm conditions and evaporate in a crisis. The AMM, by contrast, cannot pull its quote. It will always trade, but at a price that may be very unfavourable for large size. The pool does not disappear; it simply charges you more.

There is also the question of what happens to the price after your trade. On a book, your order consumes resting liquidity and the price may snap back if market makers replenish. On an AMM, your trade permanently shifts the reserve ratio, and the new price persists until someone else trades it back. That persistence is why arbitrageurs are so important to AMM health: they are the mechanism that restores the pool's price to the wider market. Without them, a pool would drift and its quotes would become increasingly stale.

For a bettor, the practical lesson is to check depth, not just the headline price. On a book, look at how much size sits at or near the price you want. On an AMM, look at the pool size and calculate the impact for your intended stake. A market that quotes an attractive price but cannot absorb your stake at that price is offering you something it cannot deliver. The number you see is the price for the smallest possible trade, not for yours.

Who provides liquidity

On an order book, liquidity comes from market makers who make an active decision to quote. They are usually professionals with inventory, risk limits and the ability to hedge elsewhere. They earn the spread and pay for their mistakes when the price moves against them. Their presence is voluntary and conditional: they quote when they believe they can manage the risk and withdraw when they cannot. This is why books can be deep in normal times and shallow in a panic. The liquidity is real, but it is also skittish, because the people providing it are managing their own exposure in real time.

On an AMM, liquidity comes from depositors who are often passive. They may be retail users chasing yield, or professional funds running strategies, but their role in the pool is the same: they supply both assets and earn fees. They do not manage inventory or react to news. The formula manages the pool on their behalf. This makes AMM liquidity more reliable in the sense that it does not flee at the first sign of volatility, but it also makes it more exposed to informed traders. An LP who does not actively monitor the pool can be picked off by arbitrageurs who know the wider market price better than the pool does.

The incentives differ sharply. A market maker is paid for taking risk and managing it well; a passive LP is paid a fee but bears impermanent loss, which can exceed the fees earned if the assets diverge. This is why AMM liquidity tends to concentrate in pairs that are expected to trade in a narrow range, such as two stablecoins, or in pairs where the fee income is high enough to compensate for the divergence risk. A pool between two volatile assets with no correlation is a harder sell to a cautious depositor, and the fee rate has to rise to attract capital.

There is a governance dimension too. Order book liquidity is provided by identifiable firms who can be regulated, audited and held to conduct rules. AMM liquidity is provided by anonymous depositors through code, and the pool's behaviour is determined by its parameters rather than by anyone's judgement. That is liberating in some respects and troubling in others. It means there is no one to complain to when the formula quotes you a bad price, and no one to intervene when a pool is exploited. The code is the counterparty, and the code does what it was written to do.

For the reader weighing a crypto sportsbook, this connects to a familiar question: who is actually taking the other side of your bet? In a traditional book, it is the operator, who manages risk and may limit or refuse your stake. In a wallet-first, no-KYC model such as Dexsport, the structure is different, and the liquidity behind a market may come from a pool or from matched counterparties rather than a house balance sheet. Understanding whether the liquidity is active or passive tells you a great deal about how the market will behave when a big event lands.

Which design suits which market

Order books suit markets with high volume, many participants and a need for precise pricing at size. Major currency pairs, large-cap equities and the busiest sports markets all benefit from the competition among market makers that a book encourages. When many professionals are quoting, the spread tightens, depth accumulates and large orders can be absorbed without wild price swings. The book also allows sophisticated order types, such as limit orders and stop orders, that give traders fine control over execution. For a market where the participants are numerous and informed, the book's queue and spread are features, not bugs.

AMMs suit markets that are thin, long-tailed or need to be always available. A niche betting market on an obscure fixture may have no natural counterparty for hours; an AMM can still quote a price and execute a trade. The same is true for new tokens or small-cap assets where no market maker wants to commit capital to a book. The AMM's guarantee of a counterparty is worth a lot in these settings, even at the cost of wider effective spreads and greater price impact for size. It turns a market that would otherwise be closed into one that is always open.

The choice is not always either-or. Some venues run a hybrid, using an AMM to provide a baseline quote and an order book for those who want to trade at better prices. Others use oracle-driven pricing, where the AMM's quote is anchored to an external reference price rather than determined purely by its reserves. These designs try to capture the AMM's availability without its staleness problem, and they are worth understanding if you are evaluating a platform's claims about fairness and pricing.

For a careful reader, the question to ask of any crypto sportsbook is which design sits underneath the odds you see. If it is a book, ask about depth and who the market makers are, and expect the price to move when a large stake arrives. If it is an AMM or a pool, ask about pool size, fee levels and how the price is kept in line with the wider market. Neither design is inherently fairer; they fail differently, and the failure modes matter when real money is at stake.

A final word on caution. The regulatory treatment of crypto betting and of the tokens used to fund it varies widely between jurisdictions, and it can change quickly. Nothing in this guide is legal advice, and you should satisfy yourself about the rules that apply where you are before using any platform. Gambling is for adults only, it carries real financial risk, and it should be treated as entertainment with a budget you can afford to lose, not as a source of income. If it stops being fun, stop.

This guide was researched, written and fact-checked by the Predict Market Desk editorial desk before publication. Last reviewed 02.12.2026. Spotted something wrong? Tell us.

Connect to Dexsport