DataMaxi+
DerivativesMedium risk

Perp DEX vs CEX Funding

Hourly-funded perp DEXs drift away from CEX funding; hedge one against the other and earn the gap.

Horizon · DaysMedium risk3 endpoints · 30 calls/h≈ $0.0912 / day
Long Binance BTC perpShort Hyperliquid BTC perp
  1. SignalGap ≥ 25% APR
  2. EntryShort DEX · long CEX
  3. ExitGap < 8%

How it works

Two legs, one spread · holds days
How it works: Long Binance BTC perp and short Hyperliquid BTC perp when Gap ≥ 25% APR; exit at Gap < 8%.
Data in30 calls/h
  • funding_rate_latest24/hHourly DEX print and the CEX print
  • funding_rate_history2/h24h average gap
  • cex_symbol_oi_stats4/hOpen interest per venue
  1. Signal
    Gap ≥ 25% APR
    Hyperliquid 1h vs Binance 8h funding, both as APR
  2. Entry
    Short DEX · long CEX
    On the 24h average; DEX open interest ≥ $20M
  3. Exit
    Gap < 8%
    Or 14 days in the trade
  4. Risk
    Halt on bridge incident
    30% bridge buffer; leg ≤ 5% of DEX open interest
LongBinanceBTC perp
DEX – CEX funding APR
Equal size on both legs, so the spread is the P&L.
ShortHyperliquidBTC perp

The signal

BTC · funding APR · Hyperliquid vs Binance · sample
Entry · entry 25%Exit · exit 8%Dots mark where the rules would have entered and exited.
  • Gap (DEX − CEX)
  • Hyperliquid
  • Binance
Funding APR by Date (UTC)
Date (UTC)Gap (DEX − CEX)HyperliquidBinance
Oct 4-3.83%4.86%8.69%
Oct 51.43%8.38%6.95%
Oct 64%10.85%6.85%
Oct 72.56%9.62%7.06%
Oct 85.14%10.07%4.93%
Oct 99.89%12.76%2.87%
Oct 108.33%11.75%3.42%
Oct 114.06%8%3.94%
Oct 124.7%7.61%2.91%
Oct 135.35%8.75%3.4%
Oct 140.63%6.64%6.01%
Oct 15-2.02%5.11%7.13%
Oct 1631.81%38.43%6.62%
Oct 1729.96%37.6%7.64%
Oct 1824.86%34.03%9.17%
Oct 1924.52%32.66%8.14%
Oct 2028.18%34.64%6.46%
Oct 2126.71%33.72%7.01%
Oct 2222.05%29.61%7.56%
Oct 2321.93%28.22%6.29%
Oct 2422.13%28.4%6.27%
Oct 2516.22%24.94%8.72%
Oct 2610.84%21.07%10.23%
Oct 2711.71%21.89%10.18%
Oct 2811.78%23.48%11.7%
Oct 297.93%22.03%14.1%
Oct 308.33%22.31%13.98%
Oct 3113.79%26.41%12.62%
Nov 115.16%28.2%13.04%
Nov 212.93%26.3%13.37%
Nov 314.96%26.4%11.44%
Nov 417.76%27.93%10.17%
Nov 513.86%25.27%11.41%
Nov 68.69%20.79%12.1%
Nov 78.89%20.16%11.27%
Nov 88.3%20.41%12.11%
Nov 92.98%17.41%14.43%
Nov 101.16%15.78%14.62%
Nov 115.3%18.63%13.33%
Nov 126.69%20.33%13.64%
Nov 134.69%18.61%13.92%
Nov 147.29%18.9%11.61%
Nov 1511.98%21.25%9.27%
Nov 1610.32%19.6%9.28%
Nov 176.24%15.19%8.95%

Sample backtest

Sample · illustrative 120D · not real performance
Net APR
19.4%
Max drawdown
−4.0%
Trades
11
Avg hold
6d
Cumulative return by Date (UTC)
Date (UTC)Equity
Jul 21-0.03%
Jul 220.02%
Jul 230.08%
Jul 240.12%
Jul 250.18%
Jul 260.16%
Jul 270.14%
Jul 280.18%
Jul 290.2%
Jul 300.3%
Jul 310.41%
Aug 10.45%
Aug 20.52%
Aug 30.55%
Aug 40.59%
Aug 50.71%
Aug 60.82%
Aug 70.95%
Aug 81.07%
Aug 91.1%
Aug 101.16%
Aug 111.22%
Aug 121.28%
Aug 131.41%
Aug 141.5%
Aug 151.55%
Aug 161.59%
Aug 171.56%
Aug 181.58%
Aug 191.63%
Aug 201.67%
Aug 211.75%
Aug 221.77%
Aug 231.74%
Aug 241.75%
Aug 251.74%
Aug 261.78%
Aug 271.88%
Aug 281.93%
Aug 291.99%
Aug 302.04%
Aug 312.03%
Sep 12.1%
Sep 22.19%
Sep 32.29%
Sep 42.44%
Sep 52.52%
Sep 62.58%
Sep 72.65%
Sep 82.68%
Sep 92.8%
Sep 102.92%
Sep 113.01%
Sep 123.1%
Sep 133.13%
Sep 143.12%
Sep 153.17%
Sep 163.2%
Sep 173.28%
Sep 183.36%
Sep 193.36%
Sep 203.37%
Sep 213.35%
Sep 223.33%
Sep 233.39%
Sep 243.44%
Sep 253.5%
Sep 263.57%
Sep 273.55%
Sep 283.57%
Sep 293.62%
Sep 303.67%
Oct 13.81%
Oct 23.92%
Oct 33.99%
Oct 44.07%
Oct 54.1%
Oct 64.16%
Oct 74.29%
Oct 84.39%
Oct 94.52%
Oct 104.62%
Oct 114.63%
Oct 124.68%
Oct 134.71%
Oct 144.77%
Oct 154.88%
Oct 164.93%
Oct 174.96%
Oct 184.98%
Oct 194.93%
Oct 204.95%
Oct 214.99%
Oct 225.03%
Oct 235.11%
Oct 245.13%
Oct 255.12%
Oct 265.14%
Oct 275.14%
Oct 285.21%
Oct 295.33%
Oct 305.4%
Oct 315.49%
Nov 15.54%
Nov 25.56%
Nov 35.66%
Nov 45.75%
Nov 55.88%
Nov 66.02%
Nov 76.08%
Nov 86.14%
Nov 96.19%
Nov 106.22%
Nov 116.33%
Nov 126.43%
Nov 136.49%
Nov 146.56%
Nov 156.54%
Nov 166.53%
Nov 176.57%

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 120 days; Hyperliquid funds hourly, Binance every 8 hours
History calls
170
Credits
925
Cost per run
≈ $0.0925
Backtest prompt
Backtest the "Perp DEX vs CEX Funding" strategy on DataMaxi+ history.
Thesis: Hourly-funded perp DEXs drift away from CEX funding; hedge one against the other and earn the gap.

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="hyperliquid", symbol="BTC-USD", limit="100") — every funding print, 100 per call; about 145 calls
2. funding_rate_history(exchange="binance", symbol="BTC-USDT", limit="100") — every funding print, 100 per call; about 20 calls
3. open_interest_history_aggregated(token_id="bitcoin", interval="1d") — aggregated OI per token; one call covers a year of daily or 30 days of 4h buckets; about 5 calls
Universe: BTC, ETH, SOL, HYPE and DOGE; Hyperliquid against Binance perps
Period: the last 120 days; Hyperliquid funds hourly, Binance every 8 hours

## Rules to test
Signal: Hyperliquid (1h) vs Binance (8h) funding on the same perp, both converted to APR.
Entry:  Gap ≥ 25% APR on the 24h average, open interest ≥ $20M on the DEX side.
Exit:   24h gap < 8% APR, or 14 days.
Risk:   Keep a bridge buffer of 30% on the DEX side. Leg cap 5% of DEX open interest. Halt on any oracle or bridge incident.

## Assumptions
Costs: 0.045% Hyperliquid and 0.05% Binance taker per leg, 0.05% slippage per leg
Data: Open interest comes from daily aggregated buckets, not the DEX side alone; treat the $20M filter as approximate.
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 170 history calls ≈ 925 credits ≈ $0.0925 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, entry, exit and risk rules
SignalHyperliquid (1h) vs Binance (8h) funding on the same perp, both converted to APR.
EntryGap ≥ 25% APR on the 24h average, open interest ≥ $20M on the DEX side.
Exit24h gap < 8% APR, or 14 days.
RiskKeep a bridge buffer of 30% on the DEX side. Leg cap 5% of DEX open interest. Halt on any oracle or bridge incident.

Data used

≈ $0.0912 / day
Endpoints this strategy calls, with price and daily cost
MCP tool · REST routeDatasetTierCalls / hCredits / dayUSD / day
funding_rate_latest
GET /funding-rate/latest
Funding rateLatest · 1 cr24576$0.0576
funding_rate_history
GET /funding-rate/history
Funding rateHistory · 5 cr2240$0.024
cex_symbol_oi_stats
GET /cex/symbol/oi-stats
Open interestLatest · 1 cr496$0.0096
Total30912$0.0912

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 "Perp DEX vs CEX Funding" strategy for me with DataMaxi+ data.
Thesis: Hourly-funded perp DEXs drift away from CEX funding; hedge one against the other and earn the gap.

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="hyperliquid", symbol="BTC-USD") — Hourly DEX print and the CEX print; about 24×/hour
2. funding_rate_history(exchange="hyperliquid", symbol="BTC-USD", limit="24") — 24h average gap; about 2×/hour
3. cex_symbol_oi_stats(base="BTC") — Open interest per venue; about 4×/hour

## Rules
Signal: Hyperliquid (1h) vs Binance (8h) funding on the same perp, both converted to APR.
Entry:  Gap ≥ 25% APR on the 24h average, open interest ≥ $20M on the DEX side.
Exit:   24h gap < 8% APR, or 14 days.
Risk:   Keep a bridge buffer of 30% on the DEX side. Leg cap 5% of DEX open interest. Halt on any oracle or bridge incident.

## 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 symbols where DEX and CEX funding differ by ≥ 25% APR, with OI on each side, 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: ~30 calls/hour ≈ 912 credits/day (≈ $0.09/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

  • Smart-contract, oracle and bridge risk on the DEX leg — size it as if it can be frozen.
  • DEX funding is capped and recalculated hourly; the gap can close within a day.
  • The gap line is Hyperliquid minus Binance; both venues are drawn for context.

Educational example, not investment advice. Sample charts and figures are illustrative.

Keep exploring

Live screens, dashboards and the data behind this strategy.

More strategies

All 20 →
Live
Loading live prices
  • Pages
    ExploreHome
  • DatasetsAll datasets
  • DashboardsGallery
  • StrategiesGallery
  • MCPConnect and tools
  • Actions
    Top up balance
  • My pageUsage, billing, API keys
  • Classic UIPrevious terminal
  • API keys
  • Quick start
  • Sign in
↑↓ move↵ open⌘K anywhere