Sub topic 5
Why Derivatives Exist
This chapter explains why derivatives markets exist, what they let a trader do that spot trading does not, and where the costs and risks come from. It assumes you know what an order book is, how spot trading settles, and how to read short Python functions. It leads into dated futures, which come next.
The core idea: exposure without ownership
On a spot market you swap one asset for another and the asset changes hands. If you buy 1 BTC at 60,000 USDT, you own 1 BTC. You can withdraw it, lend it, or spend it. Your profit or loss follows the price, and your capital is fully tied up in the purchase.
A derivative is a contract whose value depends on the price of an underlying asset. In crypto, the underlying is usually BTC, ETH, or another coin. A derivative gives you exposure to the price change without transferring the coin itself. Two parties agree on a price, and they settle the difference in value later, in cash or in a coin.
Three things follow from this design:
- You can profit from a falling price, because a contract can be sold before you own anything.
- You can control a large position with a small deposit, because the contract only needs collateral and not the full price.
- You can trade without moving coins on-chain, so there are no withdrawal delays or custody steps for each trade.
Why traders use derivatives
Hedging
A miner expects to receive BTC over the next three months but pays costs in dollars today. A holder has a large ETH position and does not want to sell it, for tax or strategic reasons, yet fears a drop. Both can open a short derivative position. If the price falls, the loss on the coins is offset by a gain on the short.
A hedge does not remove risk. It exchanges price risk for other risks: the hedge may not match the exposure exactly, margin may be called, and costs such as funding apply (covered in later chapters).
Speculation
A trader with a view on direction can take it with less capital than spot requires. A trader who expects a fall can short directly. Both effects increase the speed at which an account grows or shrinks.
Arbitrage and market making
Derivatives and spot prices are linked, since a dated future must converge to spot at expiry. Traders who see the two drift apart can buy one and sell the other. Their activity keeps the prices close, and it gives the market its liquidity. A later chapter builds this into a basis trade.
A first look at leverage
Leverage is the ratio of a position's size to the collateral posted for it. With 6,000 USDT of collateral and a 60,000 USDT position, leverage is 10x. The next chapters cover margin in detail. For now, the point is that leverage scales both outcomes.
The following code shows this for a linear contract, where profit is paid in the quote currency (USDT) and is proportional to the price change.
def linear_pnl(qty, entry, exit_price, side):
sign = 1 if side == "long" else -1
return sign * qty * (exit_price - entry)
entry = 60000
collateral = 6000 # margin posted
qty = 1.0 # 1 BTC of exposure, worth 60,000 USDT
for exit_price in (66000, 57000, 54000):
pnl = linear_pnl(qty, entry, exit_price, "long")
print(f"exit {exit_price}: pnl {pnl:+.0f} USDT, "
f"return on collateral {pnl / collateral:+.0%}")A 10% price rise returns +100% on the collateral. A 10% fall returns -100%, which means the whole deposit is gone. A trader with 10x leverage does not need a 100% price drop to lose everything. A drop near 10% is enough, and in practice the exchange closes the position slightly earlier (the liquidation chapter covers this).
Linear versus inverse, briefly
The same exposure can be packaged in two ways. A linear contract is quoted and settled in a stable quote currency such as USDT, so profit is proportional to the price change. An inverse contract is margined and settled in the coin itself, so profit in coin terms follows the difference of reciprocal prices. The dedicated chapter on contract specifications covers this in full. The relevant point here is that a derivative is a design with choices, and each choice changes who bears which risk.
def inverse_pnl_btc(contracts_usd, entry, exit_price, side):
sign = 1 if side == "long" else -1
return sign * contracts_usd * (1 / entry - 1 / exit_price)
print(inverse_pnl_btc(10000, 60000, 66000, "long"))What you give up: the costs of exposure without ownership
Derivatives remove the need to hold the coin. They also remove some of what holding the coin gives you.
| Property | Spot holding | Derivative position |
|---|---|---|
| You own the coin | Yes | No |
| Can lose more than a fixed fraction of the position | No, loss is capped at the purchase price | Yes, if margin is exhausted the position is closed |
| Forced closure by the venue | No | Yes, on liquidation |
| Ongoing cost of holding | None | Funding payments or the cost of rolling expiring contracts |
| Counterparty exposure | Custody of the exchange or wallet | Clearing house or exchange solvency, plus other traders' defaults |
| Receives airdrops, staking rewards, governance rights | Yes, if held in your own wallet | Usually no |
Who is on the other side
Every contract has a long and a short, and the long's gain equals the short's loss, before fees. Derivatives are therefore a zero-sum game between traders, and they become negative-sum after fees. The venue sits in the middle and must make sure that the loser can pay. It does this with margin, liquidation, and loss-sharing tools such as an insurance fund. These are the topics of later chapters.
The market is also open at all hours, which helps hedgers but means that price moves can happen while a trader sleeps. Leveraged positions need rules about stop-outs, position size, and the collateral that is kept in reserve.
Common errors
- Believing that a derivative price is just the spot price. It tracks spot but can differ from it. The gap is the basis, which a later chapter examines.
- Treating leverage as a product feature that changes the odds. It changes only the size of the position relative to the deposit.
- Hedging with a mismatched contract, such as shorting a different coin or a different quantity, which leaves a residual risk.
- Forgetting that the short side of a hedge needs collateral too. A hedge can be closed by a liquidation even if the full portfolio is safe.
- Ignoring venue risk. A hedged position is only as safe as the exchange that holds the collateral.
Exercise
A trader holds 2 BTC and wants to protect against a price fall for a month without selling. BTC is at 60,000 USDT. They short a linear contract for 2 BTC at 60,000. At expiry of their plan BTC is at 54,000. Ignoring fees and funding, what is the net result of the spot holding plus the short, and what does it show about hedging?
Show answer
The spot holding loses 2 x 6,000 = 12,000 USDT. The short gains 2 x 6,000 = 12,000 USDT (linear_pnl(2, 60000, 54000, "short") = +12000). The net is 0. The hedge removed the price risk, but it would also have removed the gain if the price had risen to 66,000. The trader also had to post collateral and would pay funding or roll costs, so the real result is slightly below zero.
Exercise
A trader posts 3,000 USDT as collateral for a 1-BTC linear long at 60,000 USDT. What is the leverage, and what is the return on collateral if BTC rises to 63,000?
Show answer
The position is worth 60,000 and the collateral is 3,000, so leverage is 20x. The profit is 1 x (63,000 - 60,000) = 3,000 USDT, which is a 100% return on collateral. A 5% price rise doubles the account, and a 5% fall wipes it out, so liquidation would occur before the price falls the full 5%.