--:--:--LOCAL ·--:--UTC
    MKT CAP$2.93T+0.6%
    24H VOL$109.8B
    BTC DOM58.0%
    HEALTH75BULLISH
    SHORT-TERM67NEUTRAL
    LONG-TERM83BULLISH
    OI$14.1B
    24H LIQ$78M
    LONG/SHORT53.9% / 46.1%
    REGIME (LT)BTC-LED BULL MARKET
    REGIME (ST)SQUEEZE
    HL OI$13.0B
    WHALESSHORT 43.8%
    MKT CAP$2.93T+0.6%
    24H VOL$109.8B
    BTC DOM58.0%
    HEALTH75BULLISH
    SHORT-TERM67NEUTRAL
    LONG-TERM83BULLISH
    OI$14.1B
    24H LIQ$78M
    LONG/SHORT53.9% / 46.1%
    REGIME (LT)BTC-LED BULL MARKET
    REGIME (ST)SQUEEZE
    HL OI$13.0B
    WHALESSHORT 43.8%
    Plug real-time crypto data into your AI agent — one command: Get your free API key →
    LoginGet API Key
    Home / Trading Strategies / Statistical Arbitrage & Pairs

    Statistical Arbitrage & Pairs Crypto Trading Strategies

    10 statistical arbitrage & pairs strategies for crypto, from the AlgoBrain wiki. Market-neutral bets on spreads between related assets returning to their statistical norm. Each one lists the indicators it uses, the Crypto Data API endpoints that feed it and copy-paste prompts for an AI agent to build and backtest it. All of them are in the API: GET /api/v1/strategies?group=statistical-arbitrage.

    Every Statistical Arbitrage & Pairs strategy

    Correlation-Regime Pairs #

    swing advanced backtest: untested behavioral edgeanalytical edgestructural edge

    Correlation-regime pairs is a stat-arb/pairs strategy that runs spread entries only while the pair's cointegrating relationship is demonstrably active: rolling correlation above a calibrated floor (typically ≥ 0.70 on a 30-day window), the Engle-Granger or Johansen cointegration test still passing at p < 0.10, and the spread half-life within an acceptable bound (≥ 3 days and ≤ 45 days for a swing

    Why it works: Retail and directional momentum traders push co-moving crypto pairs into temporary spread dislocations during periods when the cointegrating relationship is intact; by requiring a rolling correlation floor, cointegration test significance, and spread half-life within bounds before entering — and flattening immediately on correlation breakdown rather than averaging into a structurally broken spread

    CDA endpoints/api/v1/derivatives/funding-rates/api/v1/hyperliquid/funding-rates/api/v1/derivatives/open-interest/api/v1/hyperliquid/open-interest/api/v1/regimes/current/api/v1/quant/market
    Via API/api/v1/strategies/correlation-regime-pairs
    AI-agent prompts
    Build it with an AI agent
    Build the Correlation-Regime Pairs crypto trading strategy using the CryptoDataAPI (X-API-Key header, base https://cryptodataapi.com).
    
    1. Read the playbook first: GET https://cryptodataapi.com/api/v1/algobrain/page?path=wiki/strategies/combinations/correlation-regime-pairs.md
    2. Pull the inputs:
    - GET https://cryptodataapi.com/api/v1/derivatives/funding-rates
    - GET https://cryptodataapi.com/api/v1/hyperliquid/funding-rates
    - GET https://cryptodataapi.com/api/v1/derivatives/open-interest
    - GET https://cryptodataapi.com/api/v1/hyperliquid/open-interest
    - GET https://cryptodataapi.com/api/v1/regimes/current
    - GET https://cryptodataapi.com/api/v1/quant/market
    3. Compute Cointegration, Vol Regime Detection, Open Interest on 4h bars (pinned: interval=4h, lookback=500 bars, universe=BTC,ETH,SOL unless the playbook says otherwise).
    4. Emit entry/exit rules, position size (risk 1% of equity per trade) and a stop, as JSON: {"symbol","side","entry","stop","target","size_pct","reason"}.
    5. State which regime the rules are valid in (GET /api/v1/regimes/current) and stand aside outside it. Research only — do not place orders.
    Backtest it
    Backtest the Correlation-Regime Pairs strategy on CryptoDataAPI history before trusting it.
    
    - Bars: GET https://cryptodataapi.com/api/v1/backtesting/klines?symbol=BTC&interval=4h (Pro)
    - Funding: GET https://cryptodataapi.com/api/v1/backtesting/funding?symbol=BTC (Pro)
    - Rules: from the playbook at /api/v1/algobrain/page?path=wiki/strategies/combinations/correlation-regime-pairs.md
    Pinned: fees 4.5 bps taker per side, 2 bps slippage, funding applied every 8h, signals on bar close only (no lookahead), 70/30 in-sample/out-of-sample split. Report CAGR, Sharpe, max drawdown, trade count and out-of-sample vs in-sample decay.

    Cross-Asset Signals #

    swing advanced backtest: untested informational edgeanalytical edge

    The edge is panoramic information: by monitoring bonds, credit, DXY, VIX, and crypto funding simultaneously, the cross-asset trader sees the transmission mechanism between markets before single-silo participants do.

    Why it works: Cross-asset traders see the full chain of capital flows (bonds → credit → equities → crypto) before silo-focused traders; the counterparty is the crypto-only participant who is blindsided by a DXY break or credit-spread widening that the multi-asset view telegraphed days earlier.

    CDA endpoints/api/v1/derivatives/funding-rates/api/v1/hyperliquid/funding-rates/api/v1/derivatives/open-interest/api/v1/hyperliquid/open-interest/api/v1/volatility/regime/api/v1/volatility/index
    Via API/api/v1/strategies/cross-asset-signals
    AI-agent prompts
    Build it with an AI agent
    Build the Cross-Asset Signals crypto trading strategy using the CryptoDataAPI (X-API-Key header, base https://cryptodataapi.com).
    
    1. Read the playbook first: GET https://cryptodataapi.com/api/v1/algobrain/page?path=wiki/strategies/combinations/cross-asset-signals.md
    2. Pull the inputs:
    - GET https://cryptodataapi.com/api/v1/derivatives/funding-rates
    - GET https://cryptodataapi.com/api/v1/hyperliquid/funding-rates
    - GET https://cryptodataapi.com/api/v1/derivatives/open-interest
    - GET https://cryptodataapi.com/api/v1/hyperliquid/open-interest
    - GET https://cryptodataapi.com/api/v1/volatility/regime
    - GET https://cryptodataapi.com/api/v1/volatility/index
    3. Compute Intermarket Analysis, Open Interest, Volatility Regime on 4h bars (pinned: interval=4h, lookback=500 bars, universe=BTC,ETH,SOL unless the playbook says otherwise).
    4. Emit entry/exit rules, position size (risk 1% of equity per trade) and a stop, as JSON: {"symbol","side","entry","stop","target","size_pct","reason"}.
    5. State which regime the rules are valid in (GET /api/v1/regimes/current) and stand aside outside it. Research only — do not place orders.
    Backtest it
    Backtest the Cross-Asset Signals strategy on CryptoDataAPI history before trusting it.
    
    - Bars: GET https://cryptodataapi.com/api/v1/backtesting/klines?symbol=BTC&interval=4h (Pro)
    - Funding: GET https://cryptodataapi.com/api/v1/backtesting/funding?symbol=BTC (Pro)
    - Rules: from the playbook at /api/v1/algobrain/page?path=wiki/strategies/combinations/cross-asset-signals.md
    Pinned: fees 4.5 bps taker per side, 2 bps slippage, funding applied every 8h, signals on bar close only (no lookahead), 70/30 in-sample/out-of-sample split. Report CAGR, Sharpe, max drawdown, trade count and out-of-sample vs in-sample decay.

    Cross-Sectional Relative Value (Hyperliquid Basket) #

    swing advanced backtest: naive-backtested analytical edgestructural edge

    A market-neutral (within-sector) long-short perpetual basket that ranks assets within a defined crypto sector — L1 blockchains, DeFi protocols, AI-agent tokens — by a composite of momentum, funding rate, and open-interest signals, then goes long the top quintile and short the bottom quintile of the ranking.

    Why it works: Within a correlated sector (L1s, DeFi, AI tokens), the strongest assets by composite momentum-funding-OI rank consistently outperform the weakest over 5–14 day windows; going long the top quintile and short the bottom quintile within each sector is dollar-neutral to broad crypto direction and profits from the within-sector spread.

    CDA endpoints/api/v1/derivatives/funding-rates/api/v1/hyperliquid/funding-rates/api/v1/derivatives/open-interest/api/v1/hyperliquid/open-interest/api/v1/sentiment/macro/api/v1/hyperliquid/candles
    Via API/api/v1/strategies/cross-sectional-relative-value
    AI-agent prompts
    Build it with an AI agent
    Build the Cross-Sectional Relative Value (Hyperliquid Basket) crypto trading strategy using the CryptoDataAPI (X-API-Key header, base https://cryptodataapi.com).
    
    1. Read the playbook first: GET https://cryptodataapi.com/api/v1/algobrain/page?path=wiki/strategies/hyperliquid-baskets/cross-sectional-relative-value.md
    2. Pull the inputs:
    - GET https://cryptodataapi.com/api/v1/derivatives/funding-rates
    - GET https://cryptodataapi.com/api/v1/hyperliquid/funding-rates
    - GET https://cryptodataapi.com/api/v1/derivatives/open-interest
    - GET https://cryptodataapi.com/api/v1/hyperliquid/open-interest
    - GET https://cryptodataapi.com/api/v1/sentiment/macro
    - GET https://cryptodataapi.com/api/v1/hyperliquid/candles
    3. Compute Relative Strength, Technical / Structural Regime, Funding Rate, Open Interest, Basis on 4h bars (pinned: interval=4h, lookback=500 bars, universe=BTC,ETH,SOL unless the playbook says otherwise).
    4. Emit entry/exit rules, position size (risk 1% of equity per trade) and a stop, as JSON: {"symbol","side","entry","stop","target","size_pct","reason"}.
    5. State which regime the rules are valid in (GET /api/v1/regimes/current) and stand aside outside it. Research only — do not place orders.
    Backtest it
    Backtest the Cross-Sectional Relative Value (Hyperliquid Basket) strategy on CryptoDataAPI history before trusting it.
    
    - Bars: GET https://cryptodataapi.com/api/v1/backtesting/klines?symbol=BTC&interval=4h (Pro)
    - Funding: GET https://cryptodataapi.com/api/v1/backtesting/funding?symbol=BTC (Pro)
    - Rules: from the playbook at /api/v1/algobrain/page?path=wiki/strategies/hyperliquid-baskets/cross-sectional-relative-value.md
    Pinned: fees 4.5 bps taker per side, 2 bps slippage, funding applied every 8h, signals on bar close only (no lookahead), 70/30 in-sample/out-of-sample split. Report CAGR, Sharpe, max drawdown, trade count and out-of-sample vs in-sample decay.

    Kalman Filter Trading #

    swing advanced backtest: untested analytical edgebehavioral edgerisk-bearing edge

    The Kalman filter is a recursive Bayesian estimation algorithm that extracts a hidden state — a "true" price, trend slope, or hedge ratio — from noisy market data. Developed by Rudolf Kalman in 1960 for aerospace navigation, it is a cornerstone of quantitative signal processing.

    Why it works: The Kalman filter tracks a drifting hidden state (a crypto hedge ratio or 'true' price) online; the edge is capturing structural drift in a relationship faster than a fixed-window regression, then trading the reversion of the filtered residual against the flow that displaced it.

    CDA endpoints/api/v1/derivatives/funding-rates/api/v1/hyperliquid/funding-rates/api/v1/sentiment/macro/api/v1/hyperliquid/candles/api/v1/market-data/klines
    Via API/api/v1/strategies/kalman-filter-trading
    AI-agent prompts
    Build it with an AI agent
    Build the Kalman Filter Trading crypto trading strategy using the CryptoDataAPI (X-API-Key header, base https://cryptodataapi.com).
    
    1. Read the playbook first: GET https://cryptodataapi.com/api/v1/algobrain/page?path=wiki/strategies/quantitative/kalman-filter-trading.md
    2. Pull the inputs:
    - GET https://cryptodataapi.com/api/v1/derivatives/funding-rates
    - GET https://cryptodataapi.com/api/v1/hyperliquid/funding-rates
    - GET https://cryptodataapi.com/api/v1/sentiment/macro
    - GET https://cryptodataapi.com/api/v1/hyperliquid/candles
    - GET https://cryptodataapi.com/api/v1/market-data/klines
    3. Compute Moving Averages, Cointegration, Vol Regime Detection, Funding Rate, Bollinger Bands on 4h bars (pinned: interval=4h, lookback=500 bars, universe=BTC,ETH,SOL unless the playbook says otherwise).
    4. Emit entry/exit rules, position size (risk 1% of equity per trade) and a stop, as JSON: {"symbol","side","entry","stop","target","size_pct","reason"}.
    5. State which regime the rules are valid in (GET /api/v1/regimes/current) and stand aside outside it. Research only — do not place orders.
    Backtest it
    Backtest the Kalman Filter Trading strategy on CryptoDataAPI history before trusting it.
    
    - Bars: GET https://cryptodataapi.com/api/v1/backtesting/klines?symbol=BTC&interval=4h (Pro)
    - Funding: GET https://cryptodataapi.com/api/v1/backtesting/funding?symbol=BTC (Pro)
    - Rules: from the playbook at /api/v1/algobrain/page?path=wiki/strategies/quantitative/kalman-filter-trading.md
    Pinned: fees 4.5 bps taker per side, 2 bps slippage, funding applied every 8h, signals on bar close only (no lookahead), 70/30 in-sample/out-of-sample split. Report CAGR, Sharpe, max drawdown, trade count and out-of-sample vs in-sample decay.

    Ornstein-Uhlenbeck Process #

    swing advanced backtest: untested analytical edgebehavioral edgerisk-bearing edge

    The Ornstein-Uhlenbeck (OU) process is a continuous-time stochastic model of mean-reverting dynamics — a price or spread pulled toward a long-run equilibrium with random fluctuations around it.

    Why it works: The OU process turns a mean-reverting crypto spread into three tradeable parameters (speed, mean, volatility); the edge is modeling the reversion correctly and being paid to provide liquidity against the flow that pushed the spread away from equilibrium.

    CDA endpoints/api/v1/derivatives/funding-rates/api/v1/hyperliquid/funding-rates/api/v1/sentiment/macro/api/v1/indicators/technical/api/v1/hyperliquid/candles/api/v1/market-data/klines
    Via API/api/v1/strategies/ornstein-uhlenbeck
    AI-agent prompts
    Build it with an AI agent
    Build the Ornstein-Uhlenbeck Process crypto trading strategy using the CryptoDataAPI (X-API-Key header, base https://cryptodataapi.com).
    
    1. Read the playbook first: GET https://cryptodataapi.com/api/v1/algobrain/page?path=wiki/strategies/quantitative/ornstein-uhlenbeck.md
    2. Pull the inputs:
    - GET https://cryptodataapi.com/api/v1/derivatives/funding-rates
    - GET https://cryptodataapi.com/api/v1/hyperliquid/funding-rates
    - GET https://cryptodataapi.com/api/v1/sentiment/macro
    - GET https://cryptodataapi.com/api/v1/indicators/technical
    - GET https://cryptodataapi.com/api/v1/hyperliquid/candles
    - GET https://cryptodataapi.com/api/v1/market-data/klines
    3. Compute Cointegration, Funding Rate on 4h bars (pinned: interval=4h, lookback=500 bars, universe=BTC,ETH,SOL unless the playbook says otherwise).
    4. Emit entry/exit rules, position size (risk 1% of equity per trade) and a stop, as JSON: {"symbol","side","entry","stop","target","size_pct","reason"}.
    5. State which regime the rules are valid in (GET /api/v1/regimes/current) and stand aside outside it. Research only — do not place orders.
    Backtest it
    Backtest the Ornstein-Uhlenbeck Process strategy on CryptoDataAPI history before trusting it.
    
    - Bars: GET https://cryptodataapi.com/api/v1/backtesting/klines?symbol=BTC&interval=4h (Pro)
    - Funding: GET https://cryptodataapi.com/api/v1/backtesting/funding?symbol=BTC (Pro)
    - Rules: from the playbook at /api/v1/algobrain/page?path=wiki/strategies/quantitative/ornstein-uhlenbeck.md
    Pinned: fees 4.5 bps taker per side, 2 bps slippage, funding applied every 8h, signals on bar close only (no lookahead), 70/30 in-sample/out-of-sample split. Report CAGR, Sharpe, max drawdown, trade count and out-of-sample vs in-sample decay.

    Pairs Trading #

    swing advanced backtest: untested analytical edgebehavioral edgerisk-bearing edge

    Pairs trading is a market neutral statistical arbitrage strategy that identifies two cointegrated crypto assets and profits from temporary divergences in their price relationship.

    Why it works: Two economically linked crypto assets are pulled apart by single-name flow (a listing, unlock, narrative rotation, or liquidation in one leg); the pairs trader models the relationship, supplies liquidity against the divergence, and is paid the reversion — while hedging out BTC-beta so the only bet is convergence.

    CDA endpoints/api/v1/derivatives/funding-rates/api/v1/hyperliquid/funding-rates/api/v1/sentiment/macro/api/v1/indicators/technical/api/v1/hyperliquid/candles/api/v1/market-data/klines
    Via API/api/v1/strategies/pairs-trading
    AI-agent prompts
    Build it with an AI agent
    Build the Pairs Trading crypto trading strategy using the CryptoDataAPI (X-API-Key header, base https://cryptodataapi.com).
    
    1. Read the playbook first: GET https://cryptodataapi.com/api/v1/algobrain/page?path=wiki/strategies/quantitative/pairs-trading.md
    2. Pull the inputs:
    - GET https://cryptodataapi.com/api/v1/derivatives/funding-rates
    - GET https://cryptodataapi.com/api/v1/hyperliquid/funding-rates
    - GET https://cryptodataapi.com/api/v1/sentiment/macro
    - GET https://cryptodataapi.com/api/v1/indicators/technical
    - GET https://cryptodataapi.com/api/v1/hyperliquid/candles
    - GET https://cryptodataapi.com/api/v1/market-data/klines
    3. Compute Cointegration, Funding Rate on 4h bars (pinned: interval=4h, lookback=500 bars, universe=BTC,ETH,SOL unless the playbook says otherwise).
    4. Emit entry/exit rules, position size (risk 1% of equity per trade) and a stop, as JSON: {"symbol","side","entry","stop","target","size_pct","reason"}.
    5. State which regime the rules are valid in (GET /api/v1/regimes/current) and stand aside outside it. Research only — do not place orders.
    Backtest it
    Backtest the Pairs Trading strategy on CryptoDataAPI history before trusting it.
    
    - Bars: GET https://cryptodataapi.com/api/v1/backtesting/klines?symbol=BTC&interval=4h (Pro)
    - Funding: GET https://cryptodataapi.com/api/v1/backtesting/funding?symbol=BTC (Pro)
    - Rules: from the playbook at /api/v1/algobrain/page?path=wiki/strategies/quantitative/pairs-trading.md
    Pinned: fees 4.5 bps taker per side, 2 bps slippage, funding applied every 8h, signals on bar close only (no lookahead), 70/30 in-sample/out-of-sample split. Report CAGR, Sharpe, max drawdown, trade count and out-of-sample vs in-sample decay.

    Stablecoin Pair Arbitrage #

    swing intermediate backtest: paper-traded structural edgebehavioral edge

    Stablecoin pair arbitrage exploits temporary deviations between fiat-pegged stablecoins (USDC, USDT, DAI, FRAX, USDe) when one breaks its peg due to redemption stress, banking risk, or collateral concerns.

    Why it works: Stablecoins are designed to peg to $1 via different mechanisms (reserves, over-collateralization, algorithmic). Temporary depegs from panic, banking issues, or redemption frictions revert when the redemption mechanism re-asserts itself.

    Indicators Price and volume only — see the playbook for the exact rules.
    CDA endpoints/api/v1/sentiment/stablecoins/api/v1/dex/trending/api/v1/dex/new-pools/api/v1/indicators/technical/api/v1/hyperliquid/candles/api/v1/market-data/klines
    Via API/api/v1/strategies/stablecoin-pair-arbitrage
    AI-agent prompts
    Build it with an AI agent
    Build the Stablecoin Pair Arbitrage crypto trading strategy using the CryptoDataAPI (X-API-Key header, base https://cryptodataapi.com).
    
    1. Read the playbook first: GET https://cryptodataapi.com/api/v1/algobrain/page?path=wiki/strategies/arbitrage/stablecoin-pair-arbitrage.md
    2. Pull the inputs:
    - GET https://cryptodataapi.com/api/v1/sentiment/stablecoins
    - GET https://cryptodataapi.com/api/v1/dex/trending
    - GET https://cryptodataapi.com/api/v1/dex/new-pools
    - GET https://cryptodataapi.com/api/v1/indicators/technical
    - GET https://cryptodataapi.com/api/v1/hyperliquid/candles
    - GET https://cryptodataapi.com/api/v1/market-data/klines
    3. Compute the signals described in the playbook on 4h bars (pinned: interval=4h, lookback=500 bars, universe=BTC,ETH,SOL unless the playbook says otherwise).
    4. Emit entry/exit rules, position size (risk 1% of equity per trade) and a stop, as JSON: {"symbol","side","entry","stop","target","size_pct","reason"}.
    5. State which regime the rules are valid in (GET /api/v1/regimes/current) and stand aside outside it. Research only — do not place orders.
    Backtest it
    Backtest the Stablecoin Pair Arbitrage strategy on CryptoDataAPI history before trusting it.
    
    - Bars: GET https://cryptodataapi.com/api/v1/backtesting/klines?symbol=BTC&interval=4h (Pro)
    - Funding: GET https://cryptodataapi.com/api/v1/backtesting/funding?symbol=BTC (Pro)
    - Rules: from the playbook at /api/v1/algobrain/page?path=wiki/strategies/arbitrage/stablecoin-pair-arbitrage.md
    Pinned: fees 4.5 bps taker per side, 2 bps slippage, funding applied every 8h, signals on bar close only (no lookahead), 70/30 in-sample/out-of-sample split. Report CAGR, Sharpe, max drawdown, trade count and out-of-sample vs in-sample decay.

    Statistical Arbitrage #

    swing advanced backtest: untested analytical edgebehavioral edgerisk-bearing edge

    A quantitative strategy that exploits statistical mispricings between related crypto assets, most simply through pairs trading and more generally through factor-residual baskets.

    Why it works: Temporary divergences between cointegrated crypto assets (or a coin and its factor basket) are created by single-name flow — listings, unlocks, narrative rotations, liquidations; the stat-arb book supplies liquidity against that flow, neutralizes BTC-beta, and harvests the reversion in aggregate across many spreads.

    CDA endpoints/api/v1/derivatives/funding-rates/api/v1/hyperliquid/funding-rates/api/v1/derivatives/open-interest/api/v1/hyperliquid/open-interest/api/v1/volatility/regime/api/v1/volatility/index
    Via API/api/v1/strategies/statistical-arbitrage
    AI-agent prompts
    Build it with an AI agent
    Build the Statistical Arbitrage crypto trading strategy using the CryptoDataAPI (X-API-Key header, base https://cryptodataapi.com).
    
    1. Read the playbook first: GET https://cryptodataapi.com/api/v1/algobrain/page?path=wiki/strategies/quantitative/statistical-arbitrage.md
    2. Pull the inputs:
    - GET https://cryptodataapi.com/api/v1/derivatives/funding-rates
    - GET https://cryptodataapi.com/api/v1/hyperliquid/funding-rates
    - GET https://cryptodataapi.com/api/v1/derivatives/open-interest
    - GET https://cryptodataapi.com/api/v1/hyperliquid/open-interest
    - GET https://cryptodataapi.com/api/v1/volatility/regime
    - GET https://cryptodataapi.com/api/v1/volatility/index
    3. Compute Cointegration, Funding Rate, Open Interest, Volatility, Vol Regime Detection on 4h bars (pinned: interval=4h, lookback=500 bars, universe=BTC,ETH,SOL unless the playbook says otherwise).
    4. Emit entry/exit rules, position size (risk 1% of equity per trade) and a stop, as JSON: {"symbol","side","entry","stop","target","size_pct","reason"}.
    5. State which regime the rules are valid in (GET /api/v1/regimes/current) and stand aside outside it. Research only — do not place orders.
    Backtest it
    Backtest the Statistical Arbitrage strategy on CryptoDataAPI history before trusting it.
    
    - Bars: GET https://cryptodataapi.com/api/v1/backtesting/klines?symbol=BTC&interval=4h (Pro)
    - Funding: GET https://cryptodataapi.com/api/v1/backtesting/funding?symbol=BTC (Pro)
    - Rules: from the playbook at /api/v1/algobrain/page?path=wiki/strategies/quantitative/statistical-arbitrage.md
    Pinned: fees 4.5 bps taker per side, 2 bps slippage, funding applied every 8h, signals on bar close only (no lookahead), 70/30 in-sample/out-of-sample split. Report CAGR, Sharpe, max drawdown, trade count and out-of-sample vs in-sample decay.

    Unlock Pair Hedge #

    swing advanced backtest: untested informational edgestructural edgeanalytical edge

    Unlock pair hedge is a beta-matched long-short pairs trade constructed around a scheduled token cliff unlock: short the unlocking token's perp, long a beta-matched sector peer perp, in a ratio that makes the pair roughly neutral to broad crypto market direction.

    Why it works: Token cliff unlocks create a predictable idiosyncratic supply shock; expressing the short as a long-short pair — short the unlocking token, long a beta-matched sector peer — strips out broad crypto market exposure and isolates the supply-shock premium, leaving the trade to profit from the idiosyncratic price impact of the unlock while remaining neutral to BTC/ETH price direction.

    CDA endpoints/api/v1/derivatives/funding-rates/api/v1/hyperliquid/funding-rates/api/v1/derivatives/open-interest/api/v1/hyperliquid/open-interest/api/v1/supply/unlocks/api/v1/sentiment/macro
    Via API/api/v1/strategies/unlock-pair-hedge
    AI-agent prompts
    Build it with an AI agent
    Build the Unlock Pair Hedge crypto trading strategy using the CryptoDataAPI (X-API-Key header, base https://cryptodataapi.com).
    
    1. Read the playbook first: GET https://cryptodataapi.com/api/v1/algobrain/page?path=wiki/strategies/combinations/unlock-pair-hedge.md
    2. Pull the inputs:
    - GET https://cryptodataapi.com/api/v1/derivatives/funding-rates
    - GET https://cryptodataapi.com/api/v1/hyperliquid/funding-rates
    - GET https://cryptodataapi.com/api/v1/derivatives/open-interest
    - GET https://cryptodataapi.com/api/v1/hyperliquid/open-interest
    - GET https://cryptodataapi.com/api/v1/supply/unlocks
    - GET https://cryptodataapi.com/api/v1/sentiment/macro
    3. Compute Funding Rate, Open Interest on 4h bars (pinned: interval=4h, lookback=500 bars, universe=BTC,ETH,SOL unless the playbook says otherwise).
    4. Emit entry/exit rules, position size (risk 1% of equity per trade) and a stop, as JSON: {"symbol","side","entry","stop","target","size_pct","reason"}.
    5. State which regime the rules are valid in (GET /api/v1/regimes/current) and stand aside outside it. Research only — do not place orders.
    Backtest it
    Backtest the Unlock Pair Hedge strategy on CryptoDataAPI history before trusting it.
    
    - Bars: GET https://cryptodataapi.com/api/v1/backtesting/klines?symbol=BTC&interval=4h (Pro)
    - Funding: GET https://cryptodataapi.com/api/v1/backtesting/funding?symbol=BTC (Pro)
    - Rules: from the playbook at /api/v1/algobrain/page?path=wiki/strategies/combinations/unlock-pair-hedge.md
    Pinned: fees 4.5 bps taker per side, 2 bps slippage, funding applied every 8h, signals on bar close only (no lookahead), 70/30 in-sample/out-of-sample split. Report CAGR, Sharpe, max drawdown, trade count and out-of-sample vs in-sample decay.

    Vol-Balanced Pairs #

    swing advanced backtest: untested behavioral edgeanalytical edgestructural edge

    Vol-balanced pairs is a stat-arb/pairs strategy that applies per-leg volatility scaling to a cointegrated spread so that each side of the trade contributes equal realized risk to the position — not equal dollar notional.

    Why it works: Retail stat-arb implementations enter pairs in dollar-equal or contract-equal sizes, allowing the higher-volatility leg to dominate realized P&L regardless of which leg is 'right'; vol-balanced sizing ensures the spread's risk contribution is symmetric — the spread earns mean-reversion profit when the structural relationship reasserts, while dollar-neutral sizing produces a spread that is structur

    CDA endpoints/api/v1/derivatives/funding-rates/api/v1/hyperliquid/funding-rates/api/v1/derivatives/open-interest/api/v1/hyperliquid/open-interest/api/v1/volatility/regime/api/v1/volatility/index
    Via API/api/v1/strategies/vol-balanced-pairs
    AI-agent prompts
    Build it with an AI agent
    Build the Vol-Balanced Pairs crypto trading strategy using the CryptoDataAPI (X-API-Key header, base https://cryptodataapi.com).
    
    1. Read the playbook first: GET https://cryptodataapi.com/api/v1/algobrain/page?path=wiki/strategies/combinations/vol-balanced-pairs.md
    2. Pull the inputs:
    - GET https://cryptodataapi.com/api/v1/derivatives/funding-rates
    - GET https://cryptodataapi.com/api/v1/hyperliquid/funding-rates
    - GET https://cryptodataapi.com/api/v1/derivatives/open-interest
    - GET https://cryptodataapi.com/api/v1/hyperliquid/open-interest
    - GET https://cryptodataapi.com/api/v1/volatility/regime
    - GET https://cryptodataapi.com/api/v1/volatility/index
    3. Compute Cointegration, Realized Volatility, Funding Rate, Open Interest on 4h bars (pinned: interval=4h, lookback=500 bars, universe=BTC,ETH,SOL unless the playbook says otherwise).
    4. Emit entry/exit rules, position size (risk 1% of equity per trade) and a stop, as JSON: {"symbol","side","entry","stop","target","size_pct","reason"}.
    5. State which regime the rules are valid in (GET /api/v1/regimes/current) and stand aside outside it. Research only — do not place orders.
    Backtest it
    Backtest the Vol-Balanced Pairs strategy on CryptoDataAPI history before trusting it.
    
    - Bars: GET https://cryptodataapi.com/api/v1/backtesting/klines?symbol=BTC&interval=4h (Pro)
    - Funding: GET https://cryptodataapi.com/api/v1/backtesting/funding?symbol=BTC (Pro)
    - Rules: from the playbook at /api/v1/algobrain/page?path=wiki/strategies/combinations/vol-balanced-pairs.md
    Pinned: fees 4.5 bps taker per side, 2 bps slippage, funding applied every 8h, signals on bar close only (no lookahead), 70/30 in-sample/out-of-sample split. Report CAGR, Sharpe, max drawdown, trade count and out-of-sample vs in-sample decay.

    Get these strategies from the API

    curl -H "X-API-Key: cdk_live_yourkey" \
      "https://cryptodataapi.com/api/v1/strategies?group=statistical-arbitrage"
    
    curl -H "X-API-Key: cdk_live_yourkey" \
      "https://cryptodataapi.com/api/v1/strategies/correlation-regime-pairs"

    Any key works, Free included — mint one in a single call. The list endpoint returns summaries; the per-slug endpoint adds the prompts, edge mechanism and data inputs. Full playbooks come from /api/v1/algobrain/page?path=… using each entry's wiki_path. Or use the MCP server.

    What are statistical arbitrage & pairs crypto trading strategies?

    Market-neutral bets on spreads between related assets returning to their statistical norm.

    How many statistical arbitrage & pairs strategies are there?

    10: Correlation-Regime Pairs, Cross-Asset Signals, Cross-Sectional Relative Value (Hyperliquid Basket), Kalman Filter Trading, Ornstein-Uhlenbeck Process, Pairs Trading, Stablecoin Pair Arbitrage, Statistical Arbitrage, Unlock Pair Hedge, Vol-Balanced Pairs.

    Which indicators do statistical arbitrage & pairs strategies use?

    Most often Funding Rate, Cointegration, Open Interest, Vol Regime Detection.

    Can an AI agent build these strategies from an API?

    Yes. GET /api/v1/strategies?group=statistical-arbitrage lists them; GET /api/v1/strategies/{slug} returns the build and backtest prompts, and each prompt names the exact Crypto Data API endpoints to call. Any API key works, Free included.