Strategies
Cross-Venue Funding-Rate Spread Capture — Binance-vs-Hyperliquid BTC Perp Delta-Neutral Carry (Long Cheap-Funding Leg / Short Rich-Funding Leg, Threshold-Gated)
Outcome: Abandoned
BtcCrossVenueFundingSpreadCarryBinanceHlNeutral
Outcome Summary
This strategy sought the persistent funding differential between Binance and Hyperliquid BTC perpetuals, holding a delta-neutral two-leg carry to collect the net funding while amortizing entry costs over many receipts. The backtest confirmed the hedge was built correctly — near-zero volatility, beta, and correlation, with funding honestly credited — but the result was a relentless fee-dominated bleed: Sharpe -11.15, total return -13.7%, and every month negative. The core premise broke because the spread mean-reverted within ~1 day rather than persisting for days, so each trade earned ~0.027% of carry while paying ~0.19% in two-venue fees. The analyst abandoned it at the backtest-review gate after 4 iterations as a structurally fee-floored mechanism that threshold tuning could not fix, and it never reached optimization.
Hypothesis
Implementation
Delta-neutral cross-venue BTC funding-differential carry between BTCUSDT.BINANCE (USD-M, 8h funding, primary/signal leg) and BTCUSD.HYPERLIQUID (hourly funding, hedge leg). Each bar it computes the annualized funding differential diff = bn_rate*1095 - hl_rate*8760; when |diff| >= entry_apr it SHORTs the rich-funding venue and LONGs the cheap-funding venue in equal USD notional, collecting the net funding spread while holding ~zero BTC delta. Exits on spread convergence (|diff| <= exit_apr after a min hold), a max-hold cap, or a throttled combined-PnL kill switch. Runs on 4-HOUR bars; leverage=2 is wired into position_size via self.leverage.
Verification Results
Verification failed (Layer 3 — sandbox backtest): smoke test exceeded the 300s wall-clock limit. This almost always means per-bar work that scales with history — e.g. rescanning the full funding/supplementary series, or rebuilding a list and calling min()/sorted() inside calculate_signal()/on_bar() on every bar. Precompute sorted timestamp arrays ONCE in __init__ and use bisect, or cache lookups keyed by timestamp, so per-bar cost is O(log n) not O(n).
Backtest Review
- Sharpe
- -11.15
- Total return
- -13.74%
- Max drawdown
- 13.92%
- Trades
- 354
- Win rate
- 46.9%
- Profit factor
- 0.86
Genuinely delta-neutral: annualized_volatility 1.18%, beta -0.0007, correlation -0.03 — the two-leg hedge is correctly constructed (no directional-leakage bug), and funding is credited so the carry is measured honestly
Simple, few-parameter design; single confirmed-liquid underlying (BTC); ample funding data (7865 events) and 177 trades in the tradable window
Relentless fee-dominated bleed: Sharpe -11.15, total_return -13.7%, profit_factor 0.865, expectancy -$66/trade, and EVERY month of the 14-month sample (2025-03 to 2026-05) negative
Fee floor: two-venue round-trip cost ~0.19% vs ~0.027%/day of carry at a 10% APR entry — with avg holding only 1d 2h, fees are ~7x the carry captured; commission is 14% of gross and gross is ~breakeven (avg_win 908 ~ avg_loss 927)
The hypothesis premise ('held for days, amortized over many receipts') fails: exit_apr 0.03 closes positions as the spread mean-reverts in ~1 day, so costs are never amortized
This is the recurring cross-venue funding-carry fee-domination pattern; threshold tuning cannot manufacture a gap that persists long enough to clear two-venue costs
Analysis
Iteration History
Outcome Summary
A correctly delta-neutral cross-venue funding carry still fails if the spread mean-reverts faster than the two-venue round-trip cost can be amortized; the carry's persistence horizon, not the hedge construction, is the binding constraint, and threshold tuning cannot extend it.
The backtest review returned an 'abandon' verdict at the pre-optimization gate, judging it structurally fee-dominated rather than buggy — the ~0.19% two-venue round-trip cost needs the funding gap to persist ~7 days per 10% APR of edge, but it mean-reverts and exits in ~1 day, so fees ran ~7x the carry captured.
A market-neutral cross-venue carry that shorted the rich-funding BTC perp and longed the cheap-funding one in equal notional across Binance USD-M and Hyperliquid, entering when the annualized funding differential exceeded ~10% APR and holding while it persisted to collect the net funding while running near-zero BTC delta.
The hedge was genuinely delta-neutral (annualized volatility 1.18%, beta -0.0007, correlation -0.03) and funding was credited, but it bled steadily: total return -13.7%, Sharpe -11.15, profit factor 0.865, expectancy -$66/trade across 177 trades, every month of the 14-month sample negative, with commission at 14% of gross.
Backtest and paper results are hypothetical. Trading involves risk of loss.