Cash-and-Carry Arbitrage: How Futures Basis Trading Works (Crypto and Beyond)

Most arbitrage needs speed. Cash-and-carry arbitrage needs patience and a calculator. You buy an asset, sell a futures contract on the same asset for a higher price, and wait for the two prices to meet at expiry. The gap between them, the basis, is your profit, and you know its size on the day you open the trade. No race against other bots and no feed latency: the edge is time, not milliseconds.

That sounds like free money, and the headline numbers often look like it: “8% a year, market-neutral”. This guide walks through what those numbers really mean once fees, margin, liquidation risk and settlement details are included, how dated-futures basis trading differs from perpetual funding-rate trades, and why the same idea barely works in forex. All figures are 说明性, chosen to make the arithmetic easy to follow.

What cash-and-carry arbitrage is

A futures contract is an agreement to buy or sell an asset on a fixed future date. Its fair price is not the spot price. It is the spot price plus the cost of carrying the asset until that date: the interest you give up by holding the asset instead of cash, plus storage, minus any income the asset pays. When the future trades above spot, the market is in contango and the basis is positive.

The cash-and-carry trade has two legs opened at the same moment:

  • Long the “cash” leg: buy the asset itself (for example, spot bitcoin).
  • Short the “carry” leg: sell a dated future on the same asset, for the same amount.

If price rises, the spot leg gains and the short future loses about the same amount. If price falls, the reverse happens. Direction mostly cancels out. What cannot cancel is the basis: at expiry the future settles at the spot price, so the gap you sold has to close. This makes it a close relative of the two-leg hedge arbitrage approach, except that the convergence is guaranteed by the contract instead of hoped for.

Spot and futures converge at expiry: the gap is the trade 102,500101,500100,50099,500 Day 0Day 30Day 60Day 90 (expiry) Basis at entry +2,000 (2.0%) Short: quarterly future (sold at 102,000) Long: spot (bought at 100,000) Both settle at the same price Illustrative. Price can go anywhere; the shaded gap must reach zero by expiry.
The future starts 2.0% above spot. Whatever price does in between, the two lines meet at settlement, so the gap sold on day 0 becomes profit.

Why the basis exists at all

In traditional markets the basis is mostly interest. If cash earns 4% a year, a three-month future on a non-yielding asset should trade about 1% above spot, because whoever holds the asset for you is giving up that interest. Arbitrage desks with cheap funding keep futures close to that fair value, so the “excess” basis left for anyone else is tiny.

Crypto is different. Many traders want leveraged long exposure and buy futures to get it, while fewer participants have the capital and operational setup to sit on the other side. That demand pushes futures above their interest-rate fair value, sometimes far above it in bull markets. The cash-and-carry trader is paid for supplying the short side that leveraged buyers want. In calm or bearish periods the basis compresses, and in sharp sell-offs it can turn negative (backwardation) for a while.

The math: from basis to real yield

Take an illustrative setup: spot bitcoin at $100,000, a quarterly future with 90 days to expiry at $102,000, and $100,000 of notional on each leg.

Step 1: annualise the basis

Basis = (future − spot) / spot = 2,000 / 100,000 = 2.0% for 90 days. The simple annualised rate is 2.0% × 365 / 90 = 8.11%. This is the number exchanges and dashboards usually show, and it is the number most guides stop at.

Step 2: subtract the costs of both legs

Assume a 0.10% taker fee to buy spot, 0.05% to sell the future, and 0.10% to sell the spot again at expiry while the future cash-settles (settlement fee assumed zero). That is 0.25%, or $250. Net locked profit: 2.0% − 0.25% = 1.75%, or $1,750, which is 7.10% annualised on notional. Add a little slippage if you trade size in a thin book.

Step 3: divide by the capital you actually tie up

Here is the step that changes the picture. The spot leg costs the full $100,000. The short future also needs margin. At 3x leverage on the short that is about $33,333, so total capital is roughly $133,333. The return on capital is 1,750 / 133,333 = 1.31% per 90 days, or about 5.3% a year. The attractive 8.11% has become 5.3% before you have taken a single risk into account.

From quoted basis to real yield (illustrative) Gross basis, 90 days Fees on both legs Net on notional, 90 days Annualised on notional Annualised on capital, 3x short Annualised on capital, 2x short 2.00% −0.25% 1.75% 7.10% 5.32% 4.73% $100k per leg, 90-day quarterly, 2.0% basis. Capital = spot cost + futures margin.
The quoted annualised basis is a yield on notional. Your yield on capital is lower, because the spot leg and the futures margin both have to be funded.

Leverage, liquidation and the trap in “market-neutral”

The obvious fix for a low yield on capital is more leverage on the short leg. It works on paper and is the most common way this trade blows up. The spot bitcoin you own sits in one wallet. The short future sits in another, backed only by its margin. If price rallies hard, the short loses money in real time, and the gain on your spot coins does nothing to protect it unless the exchange lets you use them as collateral. If the margin runs out, the short is liquidated, often at a bad price, and you are left with an unhedged long position.

Short leverageCapital per $100k notionalYield on capital (net, annualised)Rally that liquidates the short*
1x (fully collateralised)$200,0003.55%about +99%
2x$150,0004.73%about +49%
3x$133,3335.32%about +33%
5x$120,0005.91%about +19%
*Isolated margin with 0.5% maintenance margin and no top-ups. Going from 2x to 5x adds about 1.2 points of yield and more than halves the rally you can survive. Illustrative.

A 33% move in a quarter is not exotic in crypto. Practical defences: keep leverage low on the short, hold a cash buffer you can move to the futures wallet quickly, set alerts well before the liquidation price, and where the exchange offers it, use a portfolio or unified margin account in which the spot coins count as collateral for the short. That last option removes most of the wallet-split risk but concentrates everything at one venue.

You do not have to wait for expiry

The basis only has to reach zero at expiry. On the way there it moves around, and that creates both a risk and an opportunity that most explanations skip.

  • Early close. If the basis collapses from 2.0% to 0.5% after 30 days, you have already captured 1.5 points. Closing both legs costs another 0.15% (sell spot, buy back the future), so you keep about 1.2% of notional in 30 days, around 14.6% annualised, and free the capital to redeploy.
  • Paper loss. If the basis widens from 2.0% to 3.0% during a rally, the position shows a mark-to-market loss of about 1% of notional, $1,000 in our example. It is not a realised loss if you hold to expiry, but it eats futures margin at exactly the moment a rally is already eating it.
  • Roll. At expiry you can open the next quarterly contract at whatever basis it offers then. Every roll pays fees again, and the new basis may be much lower than the old one.
The basis wanders before it converges (illustrative) 0%1%2%3% Day 0Day 30Day 60Day 90: converges Entry basis 2.0% Day 30: basis 0.5% close early, keep ~1.2% net in 30 days Day 55: basis 3.0% paper loss ~1% of notional, uses margin You are short the basis: a falling line is profit, a rising line is a temporary loss.
The profit at expiry is fixed, but the path is not. Early convergence lets you exit with most of the profit; a widening basis tests your margin before it reverses.

Dated futures vs perpetual funding: which carry trade?

Crypto offers a second version of the same idea: long spot, short a perpetual future, and collect the funding payments that longs pay shorts. We cover it in detail in our guide to funding rate arbitrage. The two trades look alike, but the cash flows are very different.

Dated futures (cash-and-carry)Perpetual (funding-rate)
你赚的钱The basis, fixed when you openFunding payments, reset every 1–8 hours
CertaintyKnown at entry if held to expiryFloating; can turn negative
End dateFixed expiry; roll to continueNone; exit whenever you like
主要风险Margin during rallies, settlement mismatchFunding flipping, margin during rallies
Best whenTerm basis is high and you want a locked rateFunding is persistently high and you want flexibility

Many desks run both and move capital to whichever pays more for the same risk. If a quarterly future offers 9% annualised while perpetual funding averages 4%, locking the quarterly is the better deal. When funding spikes above the term basis, the perpetual wins until it cools. Our overview of 加密货币套利的主要类型 shows where both trades sit next to cross-exchange and triangular strategies.

The risks that headline yields leave out

  • Settlement mismatch. Crypto quarterlies usually settle to an index price averaged over a window (often the last 30 minutes or so before expiry). If you sell your spot at a different moment or venue, the hedge is not exact. Sell spot in slices across the same window to track the settlement price.
  • Exchange and custody risk. The trade is only “risk-free” if both venues pay out. Holding the spot on one exchange and the short on another reduces single-venue exposure but brings back the wallet-split margin problem. There is no free option here; size each venue for what you could afford to lose.
  • Opportunity cost. A 5% yield on capital has to beat what the same money earns in a plain cash deposit or short-term government bills. When the crypto basis drops close to the risk-free rate, the trade no longer pays for its risks.
  • Operational errors. Mismatched sizes (the future’s contract size versus the spot amount), a forgotten roll, or a leg that fills while the other does not can turn a hedged trade into a directional one. Automate the entry and check both fills, as described in our guide to 连接加密货币交易所的API.
  • Negative basis. In a crash the future can trade below spot. The “reverse” trade (short spot, long future) needs borrowed coins, and borrow fees often wipe out the gap for retail traders.

Cash-and-carry outside crypto: gold, indices and forex

The trade is far older than bitcoin. Commodity houses buy physical gold or oil and sell futures against it; banks and funds run index and government-bond basis trades, often financed through repo at very high leverage. That leverage is why the bond basis trade is famous for violent unwinds in stressed markets, such as March 2020. For individuals, these markets are priced so close to fair value that the excess basis rarely covers retail costs.

Forex is the clearest example. A currency forward’s premium or discount is set by the interest rate gap between the two currencies (covered interest parity). Buying spot and selling the forward earns you the interest difference, and that is all: the same return you could get on a deposit. Do not confuse this with the forex carry trade, which earns the interest gap without hedging and carries full currency risk. The edges retail traders actually exploit in FX are short-lived price differences between feeds, which is the territory of cross-exchange arbitrage bots and latency strategies, not term-structure trades.

How to run a cash-and-carry trade, step by step

  1. Screen the term structure. List every dated contract on the assets you can hold, compute annualised basis net of fees, and compare it with the risk-free rate and with perpetual funding.
  2. Size the legs exactly. Convert the futures contract size to coin units and match the spot amount. Decide short leverage from the rally you need to survive, not from the yield you want.
  3. Enter both legs together. Use limit orders where the book allows, open the less liquid leg first, and hedge immediately once it fills.
  4. Fund a margin buffer. Keep extra collateral ready to move to the futures wallet, and set alerts at, say, 50% and 75% of the distance to liquidation.
  5. Monitor the basis. If it converges early, consider closing and redeploying. If it widens, check margin rather than panic: the gap still has to close by expiry.
  6. Exit or roll at expiry. Sell spot across the settlement window, record the realised yield on capital, and roll only if the next contract still clears your hurdle rate.

Bottom line

Cash-and-carry arbitrage is one of the few trades where you know the payoff in advance, and that makes it a useful, low-drama part of a crypto arbitrage toolkit. It is not free money. Judge it on yield on capital after fees, keep short leverage low enough to survive a big rally, match the settlement window, and compare the result with what your cash earns elsewhere. Done that way, it is a steady carry trade. Done with 10x leverage and a split wallet, it becomes a short squeeze waiting to happen.

常见问题

Is cash-and-carry arbitrage risk-free?

No. Price risk largely cancels, but you still carry liquidation risk on the short leg, exchange and custody risk, settlement mismatch and execution risk. The profit is known at entry only if both legs survive to expiry.

How do you calculate the annualised basis?

Divide (future price − spot price) by the spot price, then multiply by 365 and divide by the days to expiry. A 2% basis with 90 days left is about 8.1% a year on notional. Subtract fees and divide by the capital you tie up (spot cost plus futures margin) to get the real yield.

What is the difference between cash-and-carry and funding rate arbitrage?

Cash-and-carry uses a dated future and locks the basis at entry. Funding rate arbitrage uses a perpetual future and earns floating funding payments that reset every few hours and can turn negative. Both are long spot, short a future.

What happens if price rises sharply during the trade?

The spot leg gains and the short future loses about the same amount, but the loss drains the futures margin. If margin runs out before you top it up, the short is liquidated and you are left holding an unhedged long. Low leverage and a ready buffer prevent this.

Can you do cash-and-carry arbitrage in forex?

Technically yes, but forward prices are set by the interest rate gap between the two currencies, so the hedged trade only earns that interest difference. It is not an arbitrage profit, and it is different from the unhedged forex carry trade.

Should I hold to expiry or close early?

If the basis converges early, closing both legs captures most of the profit in less time and frees capital, as long as the extra fees are small compared with the basis left. If the basis widens, holding to expiry lets it converge, provided your margin can absorb the temporary loss.

作者简介

或者加入我们的 Telegram 社区
加入 @hftarbitrage
Comments
0 Comments
Comments will be displayed after approval by the administrator