← Back to articles
February 24, 2026
5 min read

Futures-Spot Arbitrage: From Cash-and-Carry to DeFi-CeFi

Futures-Spot Arbitrage: From Cash-and-Carry to DeFi-CeFi
#arbitrage
#futures
#spot
#cash-and-carry
#funding rate
#basis
#DeFi
#CeFi
#rust
#deltaneutral

Part 2 of the series "Complex Arbitrage Chains Between Futures and Spot"

In the previous part, we discussed how graph algorithms find complex paths for asset swaps. But the cryptocurrency market offers another dimension of profit—the price difference between the same asset on different types of markets: Spot and Futures.

This is the world of delta-neutral strategies, where the trader's profit does not depend on whether the market goes up or down.

Futures-Spot Arbitrage Visualization A visualization showing the bridge between spot markets and derivatives. One side shows spot candles, the other shows futures order books and funding rates.

1. The Core Concept: Basis and Convergence

At its heart, futures-spot arbitrage relies on the Basis—the difference between the futures price (FF) and the spot price (SS): Basis=FS\text{Basis} = F - S

On the expiration date of a futures contract, the futures price MUST equal the spot price (F=SF = S). This is called Convergence.

1.1 Cash-and-Carry

The most classic strategy:

  1. Buy Spot: Buy 1 BTC at $50,000.
  2. Sell Futures: Sell 1 BTC December Futures at $52,000.
  3. Wait: In December, you deliver the BTC. Your profit is exactly $2,000, regardless of the BTC price.

In Rust, we track these spreads across exchanges to find the highest annualized return:

fn calculate_annualized_yield(basis: f64, spot_price: f64, days_to_expiry: f64) -> f64 {
    let yield_pct = basis / spot_price;
    (yield_pct / days_to_expiry) * 365.0 * 100.0
}

2. Perpetual Futures and Funding Rates

The most popular instrument in crypto is the Perpetual Future (Perp), which never expires. To keep the Perp price close to the Spot price, exchanges use a Funding Rate.

  • Positive Funding: Longs pay Shorts. Usually happens in a bull market.
  • Negative Funding: Shorts pay Longs. Happens in a bear market.

2.1 Funding Arbitrage

If the funding rate is 0.01% every 8 hours (about 11% APR), you can:

  1. Buy Spot (1 BTC).
  2. Short Perp (1 BTC).
  3. Collect Funding: You receive 0.01% of the position value three times a day.

This is virtually risk-free income, provided you can manage the liquidation risk of your short position.

3. DeFi-CeFi Arbitrage: The New Frontier

With the rise of Decentralized Exchanges (DEXs) like dYdX or Hyperliquid and Automated Market Makers (AMMs) like Uniswap, a new type of chain has emerged.

3.1 The Chain

  1. Detect Discrepancy: BTC Spot on Binance is 50,000,butBTCPerponaDEXis50,000, but BTC Perp on a DEX is 50,500 with a huge funding rate.
  2. Execute: Buy on Binance (CeFi), Short on DEX (DeFi).
  3. Optimize: Use a "Bridge" to move collateral if needed, or maintain balances on both sides.

3.2 Cross-Chain Complexity

DeFi-CeFi arbitrage adds "Gas Fees" and "L1/L2 Latency" to our previous graph model. Your Rust bot now needs to talk to Ethereum/Solana RPC nodes and Binance API simultaneously.

async fn monitor_funding(dex_client: &DexClient, cefi_client: &CefiClient) {
    let dex_funding = dex_client.get_funding_rate("BTC-USD").await;
    let cefi_funding = cefi_client.get_funding_rate("BTC-USDT").await;
    
    let spread = dex_funding - cefi_funding;
    if spread > THRESHOLD {
        execute_trade().await;
    }
}

4. Execution Risk: Leg Risk and Liquidation

While the strategy is "Delta-Neutral" (no market direction risk), it is not "No-Risk."

  • Leg Risk: You buy the spot, but by the time you try to short the future, the price has moved, and the spread is gone.
  • Liquidation Risk: If the price doubles, your short position might be liquidated if you don't have enough collateral, even though your spot position is in profit.
  • Exchange Risk: What if the exchange goes down or gets hacked?

5. Conclusion

Futures-spot arbitrage is the "institutional" side of crypto. It requires more capital and better risk management than simple asset swaps, but it scales much better.

In the next part, we will dive into Vine Copulas, a mathematical tool used to model the complex dependencies between dozens of different assets and their derivatives simultaneously.


Maximizing carry? Explore our Delta Neutral Strategy Engine on GitHub.

Disclaimer: The information provided in this article is for educational and informational purposes only and does not constitute financial, investment, or trading advice. Trading cryptocurrencies involves significant risk of loss.

MarketMaker.cc Team

Quantitative Research & Strategy

Discuss in Telegram
Newsletter

Stay Ahead of the Market

Subscribe to our newsletter for exclusive AI trading insights, market analysis, and platform updates.

We respect your privacy. Unsubscribe at any time.