Sub topic 7
Clearing: netting and the central counterparty
This chapter covers what happens between the moment your trade is executed and the moment cash and shares move. It assumes you know what an order and an execution are, and that a trade has a trade date and a later settlement date. It also assumes you have read the earlier chapters on matching and trade confirmation. Examples use the US market, where clearing is run by the National Securities Clearing Corporation (NSCC), a subsidiary of DTCC.
Why a gap between trade and settlement creates risk
When your order matches on a venue, a trade exists. The shares and cash do not move yet. They move on the settlement date, one business day later in the US (T+1).
During that gap, each side of the trade depends on the other. If the price of the stock jumps and the seller no longer wants to deliver, or the buyer goes bankrupt before paying, the other side is stuck with a loss. This is counterparty risk: the chance that the party on the other side of a trade does not perform.
Clearing is the set of processes that sit in this gap. It does three things:
- It confirms both sides agree on what was traded.
- It reduces the number and size of obligations that must be settled.
- It makes sure the obligations are met even if a participant defaults.
Who is in the room
Retail investors never deal with a clearing house directly. Only clearing members do. A clearing member is a firm, usually a large broker-dealer or bank, that has met the clearing house's financial requirements and pays into its guarantee funds. Your broker is either a clearing member itself or uses another firm (a clearing broker) that is.
| Party | Role in clearing |
|---|---|
| You | Own the economic position; have no direct relationship with the clearing house |
| Your broker | Submits your trade, or passes it to a clearing broker |
| Clearing member | Faces the clearing house, posts margin, and is liable for its customers' trades |
| Central counterparty (CCP) | Becomes the buyer to every seller and the seller to every buyer |
| Depository (DTC in the US) | Holds the securities and moves them between accounts on settlement day |
Novation: replacing two parties with a middleman
A central counterparty (CCP) is a clearing house that legally steps into the middle of each trade. This step is called novation. The original contract between buyer and seller is cancelled and replaced by two new contracts: one between the seller and the CCP, and one between the CCP and the buyer.
After novation, the buyer no longer cares whether the seller can deliver. The buyer's counterparty is the CCP. The seller likewise cares only about the CCP. This is why you can trade with an anonymous stranger on an exchange without worrying about their credit.
The CCP now carries the risk of every participant's failure. It does not do this for free. It earns fees, and it protects itself with the controls described below.
Netting: settling the difference, not every trade
Active members make thousands of trades in the same stock in a single day. Settling each one separately would require a huge number of share and cash transfers. Netting combines them.
With multilateral netting, all of a member's trades in a given security are added up, and the member settles only the net result against the CCP. If a member bought 1,000 shares in one trade and sold 900 in another, it receives 100 shares, not 1,900 gross movements.
In the US, NSCC's Continuous Net Settlement (CNS) system does this. Each member ends up with at most one net position per security per settlement date, and one net cash amount.
Here is a small example in Python. Three members trade the same stock at 10.00. Prices are in cents to avoid floating-point rounding.
from collections import defaultdict
# (buyer, seller, quantity, price in cents)
trades = [
("A", "B", 100, 1000),
("B", "C", 60, 1000),
("C", "A", 30, 1000),
("A", "C", 20, 1000),
]
shares = defaultdict(int) # positive = member receives shares
cash = defaultdict(int) # positive = member receives cash, in cents
for buyer, seller, qty, price in trades:
shares[buyer] += qty
shares[seller] -= qty
cash[buyer] -= qty * price
cash[seller] += qty * price
gross_shares = sum(qty for _, _, qty, _ in trades)
gross_value = sum(qty * price for _, _, qty, price in trades)
net_shares = sum(v for v in shares.values() if v > 0)
net_value = sum(v for v in cash.values() if v > 0)
for member in sorted(shares):
print(member, "shares:", shares[member], "cash: $%.2f" % (cash[member] / 100))
print("gross shares", gross_shares, "-> net shares", net_shares)
print("gross value $%.2f -> net value $%.2f" % (gross_value / 100, net_value / 100))
# A shares: 90 cash: $-900.00
# B shares: -40 cash: $400.00
# C shares: -50 cash: $500.00
# gross shares 210 -> net shares 90
# gross value $2100.00 -> net value $900.00Four trades and 210 gross shares collapse into two delivery obligations that total 90 shares. Members B and C deliver 40 and 50 shares, and A receives 90. The cash needed drops from $2,100 to $900. Real clearing houses report that netting cuts the value of obligations by a large majority, often well above 90 percent, because market participants buy and sell the same securities all day.
Risk controls the CCP uses
Because the CCP guarantees performance, it needs a way to cover a member that fails. It uses a layered set of controls, often called a default waterfall.
- Membership standards. Members must meet capital and operational requirements and are monitored continuously.
- Margin (required deposits). Each member posts collateral to the CCP. The amount depends on the size and risk of its open positions, and is recalculated as prices and positions change. In the US, the clearing fund deposit is a main form of this.
- Mark-to-market. Open positions are revalued at current prices, and the member may be asked for extra collateral if the position has lost value.
- Mutualized resources. If a defaulting member's own collateral is not enough, the CCP draws on a shared fund built from contributions of all members, and then on its own capital, under rules set in advance.
The point of this order is that a defaulter's own money is used first, so surviving members are only exposed after that is gone.
When the guarantee starts
The guarantee that the CCP will complete the trade begins at a defined point in the clearing process, not at the instant you tap Buy. For trades executed on exchanges, trade details are sent to the clearing house automatically, and in the US the guarantee attaches early in that process, long before settlement date. The precise time depends on the type of trade and the clearing house rules, so check the rulebook of the clearing house for exact timing.
From your point of view, the practical effect is that once a trade has been accepted for clearing, the other side's failure should not cancel your trade.
What happens to a trade, step by step
- The venue matches your order and reports the trade to the clearing house.
- The clearing house validates it. Both sides' details must agree on security, quantity, price, and parties.
- Novation takes place, and the CCP becomes counterparty to each side.
- Throughout the day, the CCP nets each member's trades per security and calculates margin requirements.
- On settlement date, net obligations are settled. Securities move at the depository (DTC) and cash moves through the banking system, with delivery versus payment so neither moves without the other. The next chapter covers this in detail.
Common misunderstandings
- "The exchange clears my trade." Matching and clearing are separate functions. They may be owned by the same group in some markets, but they are different legal entities with different rules. In the US, exchanges match, while NSCC clears.
- "Clearing means settlement." Clearing prepares and guarantees the obligation. Settlement is the actual exchange of cash and shares.
- "The CCP guarantees my profit." It guarantees performance of the trade, not the price of the stock. If the stock falls after you buy, the CCP does not compensate you.
- "Netting means my own trades are merged." Netting applies at the member level. Your own buy and sell of the same stock on the same day will usually appear separately on your account, even if they were netted at the clearing level.
Exercise
Members X, Y, and Z trade one stock at 20.00. X buys 50 shares from Y. Y buys 80 shares from Z. Z buys 30 shares from X. What is each member's net share position, and how many shares are delivered after netting compared with gross?
Show answer
X: +50 - 30 = +20 (receives 20). Y: -50 + 80 = +30 (receives 30). Z: -80 + 30 = -50 (delivers 50). Gross shares traded are 50 + 80 + 30 = 160. After netting, only Z delivers 50 shares, and X and Y receive 20 and 30. The cash flows follow the same pattern: Z receives 50 x 20.00 = $1,000, X pays $400, and Y pays $600.
Exercise
A buyer's counterparty fails the day after a trade is accepted for clearing. Why is the buyer still expected to receive the shares, and who bears the first loss?
Show answer
Through novation, the buyer's counterparty is the central counterparty, not the failed seller, so the CCP must still deliver. The first loss falls on the defaulting member, whose margin and clearing fund deposit are used first. If those are not enough, shared resources from other members and then the CCP's own capital are used, according to the rules.