Sub topic 8
Linear and Inverse Contracts
This chapter assumes you understand basic cryptocurrency markets, exchange accounts, percentages, and simple Python code. A contract is an agreement whose value follows an underlying asset, such as BTC-USD. The contract specification tells you what one unit represents, which asset provides margin, and which asset pays profit or loss.
The two payoff models
A linear contract has a payoff that changes directly with the asset price. A typical BTC-USDT perpetual uses a quantity measured in BTC and settles profit or loss in USDT.
For a long position:
profit = quantity × (exit price − entry price)
For a short position, reverse the price difference. If you buy 0.5 BTC at $60,000 and close at $66,000, the profit is 0.5 × $6,000, or $3,000 USDT, before fees and funding.
An inverse contract usually has a fixed value in USD but settles in the base asset. A Bitcoin inverse contract may represent $10,000 of BTC. Its profit is measured in BTC:
profit in BTC = contract value × (1 / entry price − 1 / exit price)
The reciprocal prices matter. At higher BTC prices, each dollar of contract value represents fewer BTC. A long inverse position therefore earns BTC when the price rises, but the amount is not simply a fixed BTC quantity multiplied by the dollar price change.
| Feature | Linear contract | Inverse contract |
|---|---|---|
| Contract value | Usually measured in base-asset quantity | Usually fixed in quote currency |
| Margin and settlement | Often USDT or another quote asset | Usually the base coin |
| Long payoff | Quantity times price change | Contract value times reciprocal-price change |
| Main exposure | Asset price in quote currency | Asset price and the value of coin collateral |
Worked calculation in Python
The following functions ignore trading fees, funding, and changes in contract size. A positive result means profit in the settlement currency.
def linear_pnl(qty, entry, exit_price, side):
sign = 1 if side == "long" else -1
return sign * qty * (exit_price - entry)
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(linear_pnl(0.5, 60000, 66000, "long"))
print(inverse_pnl_btc(10000, 60000, 66000, "long"))The linear result is 3,000 USDT. The inverse result is approximately 0.01515 BTC. At an exit price of $66,000, that BTC profit is worth about $1,000. The two positions are not equivalent: one has 0.5 BTC of linear exposure, while the other has a $10,000 inverse contract.
How collateral changes the risk
With a linear contract margined in USDT, a falling BTC price reduces the position’s value in USDT. With an inverse contract margined in BTC, a falling BTC price can reduce both the position’s dollar value and the value of the collateral. This creates a compounding risk for a trader who is long an inverse contract and holds BTC as margin.
Exercise
A linear long position holds 0.2 BTC from $50,000 to $52,000. What is its unrealized profit before costs?
Show answer
0.2 × ($52,000 − $50,000) = $400.