Clearinghouse and custodian

What’s the difference between a clearinghouse and custodian?

Cleaning houses facilitate the exchange of capital between traders (buyer, seller). They also minimize (NOT GET RID OF) counterparty risk in a futures contract.

Custodians, on the other hand, actually hold client securities almost like a safe keeping grandmother would. Think of a bank in terms of an unsponsored depository receipt.