Sub topic 10
Post-Only Orders: Adding Liquidity Without Taking It
Assume you already understand bids, asks, limit orders, and the difference between maker and taker fees. A post-only order is a limit order with an extra execution rule: it must add liquidity to the order book. If it would fill immediately against an existing order, the exchange rejects or cancels it instead.
Why post-only exists
A normal limit order can either rest on the book or execute immediately. For example, suppose the best bid is 100.00 and the best ask is 100.50:
- A buy limit at 100.20 does not cross the spread. It rests below the best ask.
- A buy limit at 100.50 crosses the spread. It can immediately match the 100.50 ask.
- A buy post-only limit at 100.50 is rejected or canceled because it would take liquidity.
This distinction matters because exchanges often charge a lower maker fee and a higher taker fee. Post-only gives your order a rule that protects it from accidentally becoming a taker order.
| Order | Price condition | Immediate match? | Typical role |
|---|---|---|---|
| Buy limit | Below the best ask | No | Maker |
| Buy limit | At or above the best ask | Yes | Taker |
| Buy post-only | At or above the best ask | Rejected or canceled | No trade |
The crossing check
For a buy order, the order crosses when its limit price is greater than or equal to the current best ask. For a sell order, it crosses when its limit price is less than or equal to the current best bid.
def post_only_result(side, limit_price, best_bid, best_ask):
"""Return whether a post-only order can rest on the book."""
if side == "buy":
crosses = limit_price >= best_ask
elif side == "sell":
crosses = limit_price <= best_bid
else:
raise ValueError("side must be 'buy' or 'sell'")
return "rejected_or_cancelled" if crosses else "rests_as_maker"
print(post_only_result("buy", 100.20, 100.00, 100.50))
# rests_as_maker
print(post_only_result("buy", 100.50, 100.00, 100.50))
# rejected_or_cancelledThis check uses the book at the time the exchange receives the order. The market can change between submission and processing. A price that was safely non-crossing can become crossing, or another trader can remove the displayed liquidity first. The exchange then applies its post-only rule according to its matching engine.
Repricing and queue position
If a post-only order would cross, some exchanges offer a “reprice” option instead of rejecting it. The exchange moves the order to the nearest non-crossing price. This can preserve maker status, but it changes your intended price and may place the order behind other orders at that new price.
When an order rests, price-time priority usually determines its queue position. Earlier orders at the same price fill first. Canceling and replacing an order normally gives it a new timestamp, so frequent repricing can reduce its chance of filling.
Use post-only when fee control and passive execution matter more than immediate execution. Use an ordinary limit or market order when getting filled is more important.
Exercise
The best bid is 49.90 and the best ask is 50.00. What happens to a post-only sell limit at 49.95, and why?
Show answer
It is rejected or canceled because a sell at 49.95 is at or below the best ask and can immediately match existing bids. It would take liquidity instead of adding it.