DataMaxi+
DerivativesMedium risk

Funding Regime Switch

When market-wide funding flips from longs paying to shorts paying near the highs, the short side is crowded — position for the squeeze.

Horizon · Days – 1 weekMedium risk4 endpoints · 20 calls/h≈ $0.1248 / day
  1. SignalFunding ≤ −0.005%
  2. EntryLong the squeeze
  3. ExitBack ≥ +0.01%

How it works

One direction · holds days – 1 week
How it works: Long the squeeze when Funding ≤ −0.005%; exit at Back ≥ +0.01%.
Data in20 calls/h
  • funding_rate_history6/hA week of prints per venue
  • funding_rate_latest12/hLatest print per venue
  • open_interest_summary1/hOI weights per venue
  • cex_candle1/hDistance from the 30-day high
  1. Signal
    Funding ≤ −0.005%
    OI-weighted funding across top venues, 3-print average
  2. Entry
    Long the squeeze
    Flip from ≥ +0.01% with price within 5% of its 30-day high
  3. Exit
    Back ≥ +0.01%
    Or 7 days in the trade
  4. Risk
    Stop −4%
    Half size if open interest is falling

The signal

BTC · OI-weighted funding · 8h equivalent · sample
Entry · entry −0.005%Exit · exit +0.01%Dots mark where the rules would have entered and exited.
Funding (8h) by Date (UTC)
Date (UTC)Avg funding
Sep 190.013%
Sep 200.012%
Sep 210.013%
Sep 220.016%
Sep 230.016%
Sep 240.016%
Sep 250.018%
Sep 260.019%
Sep 270.017%
Sep 280.016%
Sep 290.017%
Sep 300.015%
Oct 10.013%
Oct 20.013%
Oct 30.014%
Oct 40.014%
Oct 50.013%
Oct 60.015%
Oct 70.016%
Oct 80.015%
Oct 90.013%
Oct 100.014%
Oct 110.013%
Oct 120.0099%
Oct 130.0087%
Oct 140.0091%
Oct 150.0081%
Oct 160.0067%
Oct 170.008%
Oct 180.0098%
Oct 190.0094%
Oct 200.009%
Oct 210.011%
Oct 22-0.0093%
Oct 23-0.011%
Oct 24-0.013%
Oct 25-0.012%
Oct 26-0.013%
Oct 27-0.014%
Oct 28-0.013%
Oct 29-0.011%
Oct 30-0.011%
Oct 310.0092%
Nov 10.012%
Nov 20.013%
Nov 30.013%
Nov 40.012%
Nov 50.013%
Nov 60.013%
Nov 70.011%
Nov 80.011%
Nov 90.013%
Nov 100.013%
Nov 110.013%
Nov 120.015%
Nov 130.017%
Nov 140.017%
Nov 150.017%
Nov 160.018%
Nov 170.018%

Sample backtest

Sample · illustrative 1Y · not real performance
Regime flips
9
Win rate
67%
Avg trade
+5.8%
Max drawdown
−7.5%
Cumulative return by Date (UTC)
Date (UTC)Equity
Jul 210.06%
Jul 22-0.06%
Jul 230.25%
Jul 240.64%
Jul 250.99%
Jul 261.48%
Jul 271.56%
Jul 281.54%
Jul 291.69%
Jul 301.72%
Jul 312.07%
Aug 12.44%
Aug 22.47%
Aug 32.54%
Aug 42.32%
Aug 52.02%
Aug 62.09%
Aug 72.07%
Aug 82.17%
Aug 92.27%
Aug 101.95%
Aug 111.72%
Aug 121.51%
Aug 131.32%
Aug 141.58%
Aug 151.74%
Aug 161.81%
Aug 171.93%
Aug 181.72%
Aug 191.72%
Aug 201.98%
Aug 212.21%
Aug 222.73%
Aug 233.08%
Aug 243.12%
Aug 253.29%
Aug 263.3%
Aug 273.47%
Aug 283.96%
Aug 294.21%
Aug 304.47%
Aug 314.55%
Sep 14.28%
Sep 24.25%
Sep 34.24%
Sep 44.27%
Sep 54.55%
Sep 64.47%
Sep 74.25%
Sep 84.06%
Sep 93.66%
Sep 103.63%
Sep 113.78%
Sep 123.79%
Sep 133.97%
Sep 143.84%
Sep 153.6%
Sep 163.65%
Sep 173.67%
Sep 183.99%
Sep 194.48%
Sep 204.62%
Sep 214.82%
Sep 224.89%
Sep 234.85%
Sep 245.24%
Sep 255.6%
Sep 265.95%
Sep 276.36%
Sep 286.3%
Sep 296.25%
Sep 306.29%
Oct 16.23%
Oct 26.52%
Oct 36.73%
Oct 46.65%
Oct 56.61%
Oct 66.25%
Oct 75.96%
Oct 86%
Oct 95.94%
Oct 106.09%
Oct 116.16%
Oct 125.85%
Oct 135.73%
Oct 145.58%
Oct 155.55%
Oct 165.95%
Oct 176.17%
Oct 186.37%
Oct 196.55%
Oct 206.41%
Oct 216.56%
Oct 226.88%
Oct 237.17%
Oct 247.74%
Oct 257.99%
Oct 268.02%
Oct 278.14%
Oct 288.05%
Oct 298.22%
Oct 308.6%
Oct 318.71%
Nov 18.88%
Nov 28.78%
Nov 38.41%
Nov 48.33%
Nov 58.22%
Nov 68.25%
Nov 78.47%
Nov 88.3%
Nov 98.12%
Nov 107.92%
Nov 117.59%
Nov 127.71%
Nov 137.9%
Nov 148.04%
Nov 158.31%
Nov 168.22%
Nov 178.13%

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 OI and candles
History calls
65
Credits
400
Cost per run
≈ $0.04
Backtest prompt
Backtest the "Funding Regime Switch" strategy on DataMaxi+ history.
Thesis: When market-wide funding flips from longs paying to shorts paying near the highs, the short side is crowded — position for the squeeze.

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="binance", symbol="BTC-USDT", limit="100") — every funding print, 100 per call; about 55 calls
2. 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
3. cex_candle(exchange="binance", market="futures", symbol="BTC-USDT", interval="1d") — OHLCV, up to 1,000 candles per call, history from Jan 2024; about 5 calls
Universe: BTC, ETH, SOL, XRP and DOGE perps on Binance
Period: the last 365 days; funding every 8 hours, daily OI and candles

## Rules to test
Signal: OI-weighted average funding (8h equivalent) across the top venues, 3-print average.
Entry:  Average falls from ≥ +0.01% to ≤ −0.005% while price is within 5% of its 30-day high: buy the perp.
Exit:   Average back above +0.01%, or 7 days.
Risk:   Stop −4%. Half size if the flip comes with falling open interest (shorts closing, not opening).

## Assumptions
Costs: 0.05% perp taker on entry and exit, 0.05% slippage
Data: Use Binance funding alone if the other venues are not pulled; the live rule weights several venues by OI.
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 65 history calls ≈ 400 credits ≈ $0.04 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
SignalOI-weighted average funding (8h equivalent) across the top venues, 3-print average.
EntryAverage falls from ≥ +0.01% to ≤ −0.005% while price is within 5% of its 30-day high: buy the perp.
ExitAverage back above +0.01%, or 7 days.
RiskStop −4%. Half size if the flip comes with falling open interest (shorts closing, not opening).

Data used

≈ $0.1248 / day
Endpoints this strategy calls, with price and daily cost
MCP tool · REST routeDatasetTierCalls / hCredits / dayUSD / day
funding_rate_history
GET /funding-rate/history
Funding rateHistory · 5 cr6720$0.072
funding_rate_latest
GET /funding-rate/latest
Funding rateLatest · 1 cr12288$0.0288
open_interest_summary
GET /open-interest/summary
Open interestHistory · 5 cr1120$0.012
cex_candle
GET /cex/candle
Candle · tickerHistory · 5 cr1120$0.012
Total201,248$0.1248

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 "Funding Regime Switch" strategy for me with DataMaxi+ data.
Thesis: When market-wide funding flips from longs paying to shorts paying near the highs, the short side is crowded — position for the squeeze.

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_history(exchange="binance", symbol="BTC-USDT", limit="21") — A week of prints per venue; about 6×/hour
2. funding_rate_latest(exchange="okx", symbol="BTC-USDT") — Latest print per venue; about 12×/hour
3. open_interest_summary() — OI weights per venue; about 1×/hour
4. cex_candle(exchange="binance", market="futures", symbol="BTC-USDT", interval="1d") — Distance from the 30-day high; about 1×/hour

## Rules
Signal: OI-weighted average funding (8h equivalent) across the top venues, 3-print average.
Entry:  Average falls from ≥ +0.01% to ≤ −0.005% while price is within 5% of its 30-day high: buy the perp.
Exit:   Average back above +0.01%, or 7 days.
Risk:   Stop −4%. Half size if the flip comes with falling open interest (shorts closing, not opening).

## 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 the current regime per major coin and an alert on each flip, 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: ~20 calls/hour ≈ 1,248 credits/day (≈ $0.12/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

  • Negative funding in a real downtrend is not a squeeze setup — the near-the-high filter does that job.
  • Few signals a year; one bad trade dominates the result.
  • Venue mix shifts over time; reweight by open interest every day.

Educational example, not investment advice. Sample charts and figures are illustrative. See the live screen it builds on: Funding Regime Board.

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