Predictarium Start learning

Course · Module 6 · Making markets

Making markets: what you earn and what you hold

Lesson · 8 min read

We follow a pair of quotes through a partial fill, then work out what a price drop does to the trade.

In shortPrediction market makers post bids to buy and asks to sell. At 44¢ to buy and 50¢ to sell, we earn 6¢ before costs on each contract we buy and resell. If part of the order stays with us, a drop in the value of those contracts can wipe out what we made on the sales.

What happens when somebody takes your bid?

Suppose we post a bid to buy Yes at 44¢ and an ask to sell Yes at 50¢. Anyone who wants to sell can trade with our bid, and anyone who wants to buy can trade with our ask, if those orders are available to them. We can make 6¢ on a contract we buy and then sell at those prices, before costs. The two orders fill separately. A sale might come along straight away, or we might still be holding the contract when the market closes.

We’ll follow a buy-first example. A seller gives us 20 Yes contracts at 44¢, for $8.80. We now have the contracts to offer at 50¢. If buyers take the lot, we get $10.00 back and make $1.20 before costs. If only eight sell, we collect $4.00 and still hold 12. That leftover position is what market makers call inventory. Polymarket’s market-making guide describes how quoting and inventory fit together on its order book.

We buy 20 Yes contracts, resell eight and keep 12 Bought 20 at 44¢ Sold 8 at 50¢ Still holding 12
We’ve finished the round trip on eight contracts. What we make on the whole trade still depends on what the other 12 are worth.

Eight good sales, then the price drops

Before the rest of the ask fills, a news release comes out and we now value Yes at 34¢. We’ve earned 48¢ on the eight we sold. The 12 still with us are each worth 10¢ less than we paid, a drop of $1.20. Put the two together and we’re down 72¢ at our new valuation, before fees. We could write the same sum as $4.00 back in cash plus $4.08 for the contracts we hold, less the $8.80 we originally paid.

This is a mark, meaning a value we put on the open position. If the best live bid is lower, or too small to take all 12 contracts, we’d get less by selling straight away. And if we keep the contracts until settlement, it’s the actual payout that tells us what we made.

Why the fills can go against us

Picture our bid still sitting at 44¢ when that release comes out. Someone who reads the news before us can sell to us while we’re still offering the old price. At the same time buyers have less reason to take our 50¢ ask. This is adverse selection. The very news that makes the order a bad deal for us makes it attractive to the person on the other side. Glosten and Milgrom’s original paper shows how this risk can give rise to a bid–ask spread.

On Polymarket, a post-only order is rejected if it would match on entry. That can keep a quote from taking liquidity when we send it. Once it’s resting, someone can still trade against it at the old price. And moving our quote further away can leave us waiting while other, better-priced orders get the trade. See Polymarket’s order documentation for how post-only orders behave.

What we do with the position

We set a position limit before we quote. If the bid fills and we’re at that limit, we cancel any remaining bids and check whether anything else filled while the cancellation was in flight. If our estimate has fallen, we also review the ask. We might lower it to give ourselves a better chance of selling, provided we’re happy with the new price. Lowering it can mean giving up some of the spread or selling for less than we paid.

For a paper run, we’d write down our valuation when we posted, then again shortly after each fill. For a buy, we subtract the fill price from the later value. For a sell, we subtract the later value from the fill price. A run of negative results on one side tells us where to look for stale quotes. We’d keep that record alongside the cash from completed trades and the change in value of whatever we still hold.

Replay the fills

Start with the example above. Then let all 20 contracts sell and move the mark around. Once the position is flat, changing the mark leaves the result alone. Fees and rebates are left out, and the sell side in this exercise can only resell contracts we’ve bought.

Buy at 44¢, offer at 50¢

Yes still held12
Profit on sales+$0.48
Change on open position−$1.20
Total at current value−$0.72

Try these

We buy 12 Yes at 44¢ and sell five at 50¢. If we value the rest at 40¢, how much are we up or down altogether?

Our answer

We made 30¢ on the five we sold and lost 4¢ in value on each of the seven we still hold. That’s 28¢ off, which leaves us up 2¢ before costs.

We buy 20 at 44¢ and sell eight at 50¢. What mark on the remaining contracts puts us exactly at break-even before costs?

Our answer

The eight sales earned 48¢. We can lose 4¢ on each of the 12 remaining contracts and still come out even, so the break-even mark is 40¢.

We cap our position at 20 Yes and hold 18. How many more Yes can we leave on the bid while we wait for the ask to fill?

Our answer

Two, including anything already resting on the buy side. We count the full bid as if it could fill and leave the ask out of the calculation until a sale actually happens.