OI–Price Divergence
Open interest piling up while price stays flat means one side is building; trade against whoever pays funding.
- SignalOI +15% · price flat
- EntryFade the side paying
- Exit5% move or 48h
How it works
One direction · holds 1–2 days- open_interest_overview4/hOI change ranking
- ticker30/hPrice change for the top 30
- funding_rate_latest4/hWhich side pays
- open_interest_history_aggregated2/hIs the build-up still going?
- SignalOI +15% · price flat24h open interest change vs 24h price change, top 100 perps
- EntryFade the side payingShort if funding > 0.01%, long if funding < 0
- Exit5% move or 48hIn the trade's favour, or 48 hours
- RiskStop 3% againstMax 4 open signals; skip 24h volume under $10M
The signal
SOL · OI change vs price change · 24h · sample- OI Δ24h
- Price Δ24h
| Date (UTC) | OI Δ24h | Price Δ24h |
|---|---|---|
| Oct 19 | 0.75% | -0.49% |
| Oct 20 | 1.6% | -0.82% |
| Oct 21 | 4.38% | -0.17% |
| Oct 22 | 4.03% | -0.53% |
| Oct 23 | 2.7% | -1.76% |
| Oct 24 | 4.21% | -1.62% |
| Oct 25 | 4.85% | -0.56% |
| Oct 26 | 1.52% | -0.52% |
| Oct 27 | -1.21% | -0.51% |
| Oct 28 | -0.97% | 1.04% |
| Oct 29 | -2.27% | 2.51% |
| Oct 30 | -5.59% | 2.43% |
| Oct 31 | -5.63% | 2.5% |
| Nov 1 | -2.92% | 3.53% |
| Nov 2 | -2.55% | 3.5% |
| Nov 3 | -3.02% | 2.18% |
| Nov 4 | -0.2% | 1.83% |
| Nov 5 | 18.6% | 2.38% |
| Nov 6 | 13.44% | 1.89% |
| Nov 7 | 9.15% | 1.16% |
| Nov 8 | 8.31% | 2.07% |
| Nov 9 | 6.37% | 3.29% |
| Nov 10 | 2.01% | 3.15% |
| Nov 11 | 0.48% | 3.12% |
| Nov 12 | 2.18% | 4.21% |
| Nov 13 | 2.11% | 4.4% |
| Nov 14 | 1.22% | 3.06% |
| Nov 15 | 4.03% | 2.33% |
| Nov 16 | 7.86% | 2.43% |
| Nov 17 | 8.12% | 1.4% |
Sample backtest
Sample · illustrative 60D · not real performance| Date (UTC) | Equity |
|---|---|
| Jul 21 | -0.17% |
| Jul 22 | -0.13% |
| Jul 23 | 0.11% |
| Jul 24 | 0.17% |
| Jul 25 | 0.35% |
| Jul 26 | 0.26% |
| Jul 27 | -0.08% |
| Jul 28 | -0.2% |
| Jul 29 | -0.37% |
| Jul 30 | -0.36% |
| Jul 31 | -0.12% |
| Aug 1 | -0.17% |
| Aug 2 | -0.21% |
| Aug 3 | -0.32% |
| Aug 4 | -0.58% |
| Aug 5 | -0.44% |
| Aug 6 | -0.22% |
| Aug 7 | 0.01% |
| Aug 8 | 0.4% |
| Aug 9 | 0.45% |
| Aug 10 | 0.46% |
| Aug 11 | 0.63% |
| Aug 12 | 0.71% |
| Aug 13 | 1.14% |
| Aug 14 | 1.61% |
| Aug 15 | 1.82% |
| Aug 16 | 2.07% |
| Aug 17 | 2.05% |
| Aug 18 | 1.97% |
| Aug 19 | 2.2% |
| Aug 20 | 2.34% |
| Aug 21 | 2.59% |
| Aug 22 | 2.81% |
| Aug 23 | 2.62% |
| Aug 24 | 2.49% |
| Aug 25 | 2.31% |
| Aug 26 | 2.11% |
| Aug 27 | 2.29% |
| Aug 28 | 2.35% |
| Aug 29 | 2.32% |
| Aug 30 | 2.32% |
| Aug 31 | 1.98% |
| Sep 1 | 1.83% |
| Sep 2 | 1.89% |
| Sep 3 | 1.94% |
| Sep 4 | 2.28% |
| Sep 5 | 2.48% |
| Sep 6 | 2.45% |
| Sep 7 | 2.55% |
| Sep 8 | 2.52% |
| Sep 9 | 2.68% |
| Sep 10 | 3.16% |
| Sep 11 | 3.46% |
| Sep 12 | 3.84% |
| Sep 13 | 4.06% |
| Sep 14 | 3.97% |
| Sep 15 | 4.13% |
| Sep 16 | 4.29% |
| Sep 17 | 4.5% |
| Sep 18 | 4.94% |
| Sep 19 | 5.03% |
| Sep 20 | 5% |
| Sep 21 | 4.95% |
| Sep 22 | 4.67% |
| Sep 23 | 4.7% |
| Sep 24 | 4.83% |
| Sep 25 | 4.84% |
| Sep 26 | 4.96% |
| Sep 27 | 4.77% |
| Sep 28 | 4.45% |
| Sep 29 | 4.36% |
| Sep 30 | 4.21% |
| Oct 1 | 4.35% |
| Oct 2 | 4.63% |
| Oct 3 | 4.62% |
| Oct 4 | 4.69% |
| Oct 5 | 4.63% |
| Oct 6 | 4.51% |
| Oct 7 | 4.79% |
| Oct 8 | 5.08% |
| Oct 9 | 5.42% |
| Oct 10 | 5.85% |
| Oct 11 | 5.89% |
| Oct 12 | 5.97% |
| Oct 13 | 6.13% |
| Oct 14 | 6.23% |
| Oct 15 | 6.68% |
| Oct 16 | 7.04% |
| Oct 17 | 7.18% |
| Oct 18 | 7.34% |
| Oct 19 | 7.17% |
| Oct 20 | 7.05% |
| Oct 21 | 7.19% |
| Oct 22 | 7.22% |
| Oct 23 | 7.42% |
| Oct 24 | 7.5% |
| Oct 25 | 7.22% |
| Oct 26 | 7.07% |
| Oct 27 | 6.82% |
| Oct 28 | 6.69% |
| Oct 29 | 6.9% |
| Oct 30 | 6.95% |
| Oct 31 | 7% |
| Nov 1 | 7.01% |
| Nov 2 | 6.74% |
| Nov 3 | 6.74% |
| Nov 4 | 6.9% |
| Nov 5 | 7.08% |
| Nov 6 | 7.54% |
| Nov 7 | 7.76% |
| Nov 8 | 7.82% |
| Nov 9 | 7.98% |
| Nov 10 | 7.97% |
| Nov 11 | 8.24% |
| Nov 12 | 8.71% |
| Nov 13 | 8.99% |
| Nov 14 | 9.34% |
| Nov 15 | 9.43% |
| Nov 16 | 9.29% |
| Nov 17 | 9.4% |
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 180 days, 4-hour buckets
- History calls
- 70
- Credits
- 800
- Cost per run
- ≈ $0.08
Backtest the "OI–Price Divergence" strategy on DataMaxi+ history. Thesis: Open interest piling up while price stays flat means one side is building; trade against whoever pays funding. 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. open_interest_history_aggregated(token_id="solana", interval="4h") — aggregated OI per token; one call covers a year of daily or 30 days of 4h buckets; about 30 calls 2. cex_candle(exchange="binance", market="futures", symbol="SOL-USDT", interval="4h") — OHLCV, up to 1,000 candles per call, history from Jan 2024; about 10 calls 3. funding_rate_history(exchange="binance", symbol="SOL-USDT", limit="100") — every funding print, 100 per call; about 30 calls Universe: BTC, ETH, SOL, XRP and DOGE, aggregated across venues; Binance perp for price and funding Period: the last 180 days, 4-hour buckets ## Rules to test Signal: 24h change in aggregated open interest vs 24h price change, per coin, top 100 perps. Entry: OI Δ24h ≥ 15% and |price Δ24h| ≤ 2%: short if funding > 0.01% (longs crowding), long if funding < 0. Exit: Price moves 5% in the trade's favour, or 48 hours. Risk: Stop 3% against. Max 4 open signals; skip coins with 24h volume under $10M. ## Assumptions Costs: 0.05% perp taker on entry and exit, 0.05% slippage Data: Funding is taken from the 8-hour print in force at each bar. 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 70 history calls ≈ 800 credits ≈ $0.08 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 | 24h change in aggregated open interest vs 24h price change, per coin, top 100 perps. |
|---|---|
| Entry | OI Δ24h ≥ 15% and |price Δ24h| ≤ 2%: short if funding > 0.01% (longs crowding), long if funding < 0. |
| Exit | Price moves 5% in the trade's favour, or 48 hours. |
| Risk | Stop 3% against. Max 4 open signals; skip coins with 24h volume under $10M. |
Data used
≈ $0.2256 / day| MCP tool · REST route | Dataset | Tier | Calls / h | Credits / day | USD / day |
|---|---|---|---|---|---|
open_interest_overview GET /open-interest/overview | Open interest | History · 5 cr | 4 | 480 | $0.048 |
ticker GET /ticker | Candle · ticker | Latest · 1 cr | 30 | 720 | $0.072 |
funding_rate_latest GET /funding-rate/latest | Funding rate | Latest · 1 cr | 4 | 96 | $0.0096 |
open_interest_history_aggregated GET /open-interest/history-aggregated | Open interest | Aggregated · 20 cr | 2 | 960 | $0.096 |
| Total | 40 | 2,256 | $0.2256 |
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 "OI–Price Divergence" strategy for me with DataMaxi+ data. Thesis: Open interest piling up while price stays flat means one side is building; trade against whoever pays funding. 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. open_interest_overview(limit="100", sort="desc") — OI change ranking; about 4×/hour 2. ticker(exchange="binance", symbol="SOL-USDT", market="futures") — Price change for the top 30; about 30×/hour 3. funding_rate_latest(exchange="binance", symbol="SOL-USDT") — Which side pays; about 4×/hour 4. open_interest_history_aggregated(token_id="solana", interval="1h") — Is the build-up still going?; about 2×/hour ## Rules Signal: 24h change in aggregated open interest vs 24h price change, per coin, top 100 perps. Entry: OI Δ24h ≥ 15% and |price Δ24h| ≤ 2%: short if funding > 0.01% (longs crowding), long if funding < 0. Exit: Price moves 5% in the trade's favour, or 48 hours. Risk: Stop 3% against. Max 4 open signals; skip coins with 24h volume under $10M. ## 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 flagged coins with OI Δ, price Δ, funding and a suggested 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: ~40 calls/hour ≈ 2,256 credits/day (≈ $0.23/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
- 42% of flags never move — position size has to absorb a long string of small stops.
- OI can rise from hedged basis trades, not directional bets; funding is the tell.
- Low-cap coins move on news that no positioning data sees.
Educational example, not investment advice. Sample charts and figures are illustrative. See the live screen it builds on: OI vs Price Divergence.
Keep exploring
Live screens, dashboards and the data behind this strategy.