Cross-Venue Funding Gap
Long the perp where funding is cheap, short the same perp where it is rich, and collect the difference.
- SignalGap ≥ 20% APR
- EntryLong low · short high
- Exit3d gap < 5%
How it works
Two legs, one spread · holds days – weeks- funding_rate_latest12/hLatest print on every venue
- funding_rate_history4/h7-day persistence check
- ticker12/h24h volume on both venues
- SignalGap ≥ 20% APRHighest minus lowest funding across venues, as APR
- EntryLong low · short highHeld 5 of the last 7 days; ≥ $1M volume on both venues
- Exit3d gap < 5%Measured on the 3-day average
- RiskLeg cap $10KEqual notional re-checked every 8h; margin ≥ 3× maintenance
The signal
ETH · Bybit short / Binance long · gap APR · sample| Date (UTC) | Gap APR |
|---|---|
| Aug 20 | 4.99% |
| Aug 21 | 3.07% |
| Aug 22 | 2.82% |
| Aug 23 | 6.42% |
| Aug 24 | 8.83% |
| Aug 25 | 8.78% |
| Aug 26 | 10.98% |
| Aug 27 | 14.74% |
| Aug 28 | 14.84% |
| Aug 29 | 12.89% |
| Aug 30 | 13.59% |
| Aug 31 | 14.38% |
| Sep 1 | 11.78% |
| Sep 2 | 9.94% |
| Sep 3 | 11.95% |
| Sep 4 | 13.34% |
| Sep 5 | 12.35% |
| Sep 6 | 13.7% |
| Sep 7 | 17.43% |
| Sep 8 | 18.12% |
| Sep 9 | 16.39% |
| Sep 10 | 16.95% |
| Sep 11 | 17.69% |
| Sep 12 | 14.53% |
| Sep 13 | 11.06% |
| Sep 14 | 11.11% |
| Sep 15 | 10.85% |
| Sep 16 | 8.07% |
| Sep 17 | 7.57% |
| Sep 18 | 10.35% |
| Sep 19 | 28.05% |
| Sep 20 | 24.77% |
| Sep 21 | 24.09% |
| Sep 22 | 24.32% |
| Sep 23 | 20.74% |
| Sep 24 | 16.12% |
| Sep 25 | 14.69% |
| Sep 26 | 13.12% |
| Sep 27 | 8.76% |
| Sep 28 | 6.3% |
| Sep 29 | 7.73% |
| Sep 30 | 8.06% |
| Oct 1 | 6.44% |
| Oct 2 | 7.62% |
| Oct 3 | 10.53% |
| Oct 4 | 9.96% |
| Oct 5 | 7.72% |
| Oct 6 | 8.22% |
| Oct 7 | 8.54% |
| Oct 8 | 5.39% |
| Oct 9 | 3.15% |
| Oct 10 | 4.69% |
| Oct 11 | 5.53% |
| Oct 12 | 4.33% |
| Oct 13 | 5.98% |
| Oct 14 | 10.23% |
| Oct 15 | 11.66% |
| Oct 16 | 11.17% |
| Oct 17 | 13.23% |
| Oct 18 | 15.28% |
| Oct 19 | 13.3% |
| Oct 20 | 11.06% |
| Oct 21 | 12.09% |
| Oct 22 | 12.37% |
| Oct 23 | 10.13% |
| Oct 24 | 10.36% |
| Oct 25 | 25.81% |
| Oct 26 | 25.76% |
| Oct 27 | 23.97% |
| Oct 28 | 25.02% |
| Oct 29 | 26.8% |
| Oct 30 | 24.61% |
| Oct 31 | 21.37% |
| Nov 1 | 20.98% |
| Nov 2 | 19.82% |
| Nov 3 | 15.53% |
| Nov 4 | 13.03% |
| Nov 5 | 14.1% |
| Nov 6 | 13.79% |
| Nov 7 | 11.72% |
| Nov 8 | 12.7% |
| Nov 9 | 15.32% |
| Nov 10 | 14.46% |
| Nov 11 | 12.12% |
| Nov 12 | 12.44% |
| Nov 13 | 12.1% |
| Nov 14 | 8.02% |
| Nov 15 | 4.77% |
| Nov 16 | 4.97% |
| Nov 17 | 4.11% |
Sample backtest
Sample · illustrative 90D · not real performance| Date (UTC) | Equity |
|---|---|
| Jul 21 | 0.09% |
| Jul 22 | 0.19% |
| Jul 23 | 0.26% |
| Jul 24 | 0.3% |
| Jul 25 | 0.41% |
| Jul 26 | 0.52% |
| Jul 27 | 0.64% |
| Jul 28 | 0.79% |
| Jul 29 | 0.86% |
| Jul 30 | 0.92% |
| Jul 31 | 0.98% |
| Aug 1 | 1.02% |
| Aug 2 | 1.12% |
| Aug 3 | 1.22% |
| Aug 4 | 1.28% |
| Aug 5 | 1.35% |
| Aug 6 | 1.35% |
| Aug 7 | 1.35% |
| Aug 8 | 1.4% |
| Aug 9 | 1.43% |
| Aug 10 | 1.52% |
| Aug 11 | 1.59% |
| Aug 12 | 1.6% |
| Aug 13 | 1.64% |
| Aug 14 | 1.65% |
| Aug 15 | 1.68% |
| Aug 16 | 1.78% |
| Aug 17 | 1.87% |
| Aug 18 | 1.97% |
| Aug 19 | 2.07% |
| Aug 20 | 2.1% |
| Aug 21 | 2.16% |
| Aug 22 | 2.26% |
| Aug 23 | 2.35% |
| Aug 24 | 2.51% |
| Aug 25 | 2.63% |
| Aug 26 | 2.71% |
| Aug 27 | 2.8% |
| Aug 28 | 2.83% |
| Aug 29 | 2.91% |
| Aug 30 | 3.03% |
| Aug 31 | 3.12% |
| Sep 1 | 3.22% |
| Sep 2 | 3.28% |
| Sep 3 | 3.28% |
| Sep 4 | 3.32% |
| Sep 5 | 3.35% |
| Sep 6 | 3.4% |
| Sep 7 | 3.5% |
| Sep 8 | 3.54% |
| Sep 9 | 3.57% |
| Sep 10 | 3.59% |
| Sep 11 | 3.57% |
| Sep 12 | 3.63% |
| Sep 13 | 3.7% |
| Sep 14 | 3.77% |
| Sep 15 | 3.89% |
| Sep 16 | 3.93% |
| Sep 17 | 3.97% |
| Sep 18 | 4.04% |
| Sep 19 | 4.09% |
| Sep 20 | 4.22% |
| Sep 21 | 4.36% |
| Sep 22 | 4.46% |
| Sep 23 | 4.57% |
| Sep 24 | 4.63% |
| Sep 25 | 4.68% |
| Sep 26 | 4.79% |
| Sep 27 | 4.89% |
| Sep 28 | 5.01% |
| Sep 29 | 5.13% |
| Sep 30 | 5.17% |
| Oct 1 | 5.22% |
| Oct 2 | 5.25% |
| Oct 3 | 5.28% |
| Oct 4 | 5.37% |
| Oct 5 | 5.45% |
| Oct 6 | 5.5% |
| Oct 7 | 5.55% |
| Oct 8 | 5.53% |
| Oct 9 | 5.54% |
| Oct 10 | 5.59% |
| Oct 11 | 5.63% |
| Oct 12 | 5.73% |
| Oct 13 | 5.8% |
| Oct 14 | 5.83% |
| Oct 15 | 5.88% |
| Oct 16 | 5.91% |
| Oct 17 | 5.97% |
| Oct 18 | 6.1% |
| Oct 19 | 6.2% |
| Oct 20 | 6.32% |
| Oct 21 | 6.42% |
| Oct 22 | 6.46% |
| Oct 23 | 6.54% |
| Oct 24 | 6.63% |
| Oct 25 | 6.74% |
| Oct 26 | 6.9% |
| Oct 27 | 6.99% |
| Oct 28 | 7.06% |
| Oct 29 | 7.13% |
| Oct 30 | 7.15% |
| Oct 31 | 7.22% |
| Nov 1 | 7.31% |
| Nov 2 | 7.38% |
| Nov 3 | 7.47% |
| Nov 4 | 7.5% |
| Nov 5 | 7.49% |
| Nov 6 | 7.52% |
| Nov 7 | 7.53% |
| Nov 8 | 7.59% |
| Nov 9 | 7.69% |
| Nov 10 | 7.73% |
| Nov 11 | 7.77% |
| Nov 12 | 7.8% |
| Nov 13 | 7.8% |
| Nov 14 | 7.88% |
| Nov 15 | 7.97% |
| Nov 16 | 8.07% |
| Nov 17 | 8.2% |
Generated to show the shape of the strategy, not measured on real fills. Ask your agent to backtest on DataMaxi+ history before trading.
Backtest this strategy
One prompt: your agent pulls the history below, tests these rules with fees and slippage, and charts the equity curve and drawdown. Run it before you trust the sample above.
- Period
- The last 365 days; funding every 8 hours, daily candles
- History calls
- 240
- Credits
- 1,200
- Cost per run
- ≈ $0.12
Backtest the "Cross-Venue Funding Gap" strategy on DataMaxi+ history. Thesis: Long the perp where funding is cheap, short the same perp where it is rich, and collect the difference. Use the DataMaxi+ MCP server at https://mcp.datamaxiplus.com/mcp. Pull the history once, cache it, and run the backtest in your own code sandbox (Python is fine). ## History to pull (split the period with from/to; never refetch a range you have) 1. funding_rate_history(exchange="bybit", symbol="ETH-USDT", limit="100") — every funding print, 100 per call; about 220 calls 2. cex_candle(exchange="bybit", market="futures", symbol="ETH-USDT", interval="1d") — OHLCV, up to 1,000 candles per call, history from Jan 2024; about 20 calls Universe: BTC, ETH, SOL, XRP and DOGE perps on Binance, Bybit, OKX and Bitget Period: the last 365 days; funding every 8 hours, daily candles ## Rules to test Signal: Per symbol: highest minus lowest funding across venues, interval-adjusted, as APR. Entry: Gap APR ≥ 20%, held on at least 5 of the last 7 days, 24h volume ≥ $1M on both venues. Exit: 3-day gap APR < 5%. Risk: Equal notional on both legs, re-checked every 8h. Each leg margined ≥ 3× maintenance; leg cap $10K until the pair has a week of history. ## Assumptions Costs: 0.05% perp taker on both legs at entry and exit, 0.05% slippage per leg Data: Price P&L of the two legs is measured on daily closes, so intraday leg risk is understated. Use only data stamped before each decision (no look-ahead). Say plainly where the data cannot test a rule. ## Report Net return, annualised return, Sharpe, max drawdown, number of trades, win rate and average hold, next to buy-and-hold over the same period. Chart the equity curve and the drawdown, and list the 5 worst trades. ## Budget About 240 history calls ≈ 1,200 credits ≈ $0.12 from my prepaid DataMaxi+ balance. Tell me how many calls you made. If DataMaxi+ is not connected, ask me to [connect DataMaxi+](https://claude.ai/customize/connectors?modal=add-custom-connector) using https://mcp.datamaxiplus.com/mcp before continuing.
Estimate from the call counts in the prompt. Your agent may pull less or more; it reports the calls it made.
Rules
| Signal | Per symbol: highest minus lowest funding across venues, interval-adjusted, as APR. |
|---|---|
| Entry | Gap APR ≥ 20%, held on at least 5 of the last 7 days, 24h volume ≥ $1M on both venues. |
| Exit | 3-day gap APR < 5%. |
| Risk | Equal notional on both legs, re-checked every 8h. Each leg margined ≥ 3× maintenance; leg cap $10K until the pair has a week of history. |
Data used
≈ $0.1056 / day| MCP tool · REST route | Dataset | Tier | Calls / h | Credits / day | USD / day |
|---|---|---|---|---|---|
funding_rate_latest GET /funding-rate/latest | Funding rate | Latest · 1 cr | 12 | 288 | $0.0288 |
funding_rate_history GET /funding-rate/history | Funding rate | History · 5 cr | 4 | 480 | $0.048 |
ticker GET /ticker | Candle · ticker | Latest · 1 cr | 12 | 288 | $0.0288 |
| Total | 28 | 1,056 | $0.1056 |
1 credit = $0.0001. Only successful calls are billed, from one balance shared by the API and MCP. Calls per hour are the suggested cadence; scale them to the symbols you watch.
Build it with your agent
Connect the MCP server →Open it in Claude with one click (it asks you to add the DataMaxi+ connector first if you haven't), or paste it into Cursor or any MCP client. It backtests first, then runs in paper mode and never places orders on its own.
Build the "Cross-Venue Funding Gap" strategy for me with DataMaxi+ data. Thesis: Long the perp where funding is cheap, short the same perp where it is rich, and collect the difference. Connect to the DataMaxi+ MCP server at https://mcp.datamaxiplus.com/mcp (header X-DTMX-APIKEY, read from env DATAMAXI_API_KEY). ## Data (call these tools; arguments are examples — loop over the symbols and venues you need) 1. funding_rate_latest(exchange="bybit", symbol="ETH-USDT") — Latest print on every venue; about 12×/hour 2. funding_rate_history(exchange="bybit", symbol="ETH-USDT", limit="21") — 7-day persistence check; about 4×/hour 3. ticker(exchange="binance", symbol="ETH-USDT", market="futures") — 24h volume on both venues; about 12×/hour ## Rules Signal: Per symbol: highest minus lowest funding across venues, interval-adjusted, as APR. Entry: Gap APR ≥ 20%, held on at least 5 of the last 7 days, 24h volume ≥ $1M on both venues. Exit: 3-day gap APR < 5%. Risk: Equal notional on both legs, re-checked every 8h. Each leg margined ≥ 3× maintenance; leg cap $10K until the pair has a week of history. ## What to do 1. Build the signal from the tools above and backtest the rules on the history you can pull; report trades, win rate, average trade and max drawdown. 2. Then run it live in paper mode and show me a ranked table of symbol, long venue, short venue, gap APR and 7-day persistence, refreshed on the cadence above. 3. Never place real orders. Propose trades and wait for my confirmation. ## Budget Every call is billed from my prepaid DataMaxi+ balance. Expected load: ~28 calls/hour ≈ 1,056 credits/day (≈ $0.11/day). Cache results, never repeat a call inside its refresh window, and print the number of calls each refresh made. If DataMaxi+ is not connected, ask me to [connect DataMaxi+](https://claude.ai/customize/connectors?modal=add-custom-connector) using https://mcp.datamaxiplus.com/mcp before continuing.
Risk notes
- Two venues means two margin accounts: a sharp move can liquidate one leg before the other is topped up.
- Settlement intervals differ (1h / 4h / 8h); compare interval-adjusted rates only.
- Thin perps show huge gaps that cannot be filled — the volume filter matters.
Educational example, not investment advice. Sample charts and figures are illustrative. See the live screen it builds on: Funding Gap Radar.
Keep exploring
Live screens, dashboards and the data behind this strategy.