DataMaxi+
DerivativesMedium risk

Margin Borrow Squeeze

When borrowing a coin to short becomes very expensive and funding turns negative, shorts are paying twice — they tend to cover all at once.

Horizon · 1–3 daysMedium risk4 endpoints · 24 calls/h≈ $0.0576 / day
  1. SignalBorrow ≥ 30% APR
  2. EntryLong the perp
  3. ExitFunding ≥ 0 or +8%

How it works

One direction · holds 1–3 days
How it works: Long the perp when Borrow ≥ 30% APR; exit at Funding ≥ 0 or +8%.
Data in24 calls/h
  • margin_borrow4/hBorrow rate and availability per venue
  • funding_rate_latest12/hShorts paying longs?
  • cex_symbol_oi_stats4/hAre shorts still being added?
  • cex_symbol_liquidation4/hShort liquidations start the squeeze
  1. Signal
    Borrow ≥ 30% APR
    Margin borrow rate on two venues, with funding
  2. Entry
    Long the perp
    Funding ≤ −0.02% and open interest still rising
  3. Exit
    Funding ≥ 0 or +8%
    Or 72 hours in the trade
  4. Risk
    Stop −4%
    3% of book; skip coins with event notices

The signal

TRUMP · margin borrow APR · Binance · sample
Entry · entry 30%Dots mark where the rules would have entered and exited.
Borrow APR by Date (UTC)
Date (UTC)Borrow APR
Oct 48.49%
Oct 511.91%
Oct 612.43%
Oct 712.23%
Oct 814.26%
Oct 915.29%
Oct 1013.15%
Oct 1111.92%
Oct 1213.21%
Oct 1313.1%
Oct 1411.54%
Oct 1512.81%
Oct 1615.92%
Oct 1716.64%
Oct 1816.55%
Oct 1918.89%
Oct 2020.64%
Oct 2118.9%
Oct 2217.27%
Oct 2317.82%
Oct 2416.85%
Oct 2513.78%
Oct 2613.11%
Oct 2714.71%
Oct 2814.42%
Oct 2913.37%
Oct 3015.14%
Oct 3151.13%
Nov 145.1%
Nov 239.44%
Nov 336.48%
Nov 432.51%
Nov 526.25%
Nov 622.09%
Nov 720.66%
Nov 817.9%
Nov 914.52%
Nov 1014.48%
Nov 1115.8%
Nov 1214.56%
Nov 1313.12%
Nov 1414.16%
Nov 1514.14%
Nov 1611.06%
Nov 179.03%

Sample backtest

Sample · illustrative 180D · not real performance
Signals
14
Win rate
57%
Avg win / loss
2.0 / 1.0
Max drawdown
−6.8%
Cumulative return by Date (UTC)
Date (UTC)Equity
Jul 21-0.13%
Jul 220.13%
Jul 230.24%
Jul 240.47%
Jul 250.59%
Jul 260.39%
Jul 270.47%
Jul 280.63%
Jul 290.87%
Jul 301.44%
Jul 311.7%
Aug 11.84%
Aug 21.97%
Aug 31.85%
Aug 42.05%
Aug 52.39%
Aug 62.57%
Aug 72.88%
Aug 82.82%
Aug 92.54%
Aug 102.46%
Aug 112.27%
Aug 122.32%
Aug 132.53%
Aug 142.38%
Aug 152.27%
Aug 161.98%
Aug 171.57%
Aug 181.58%
Aug 191.62%
Aug 201.72%
Aug 211.96%
Aug 221.81%
Aug 231.69%
Aug 241.71%
Aug 251.69%
Aug 262.1%
Aug 272.51%
Aug 282.72%
Aug 293%
Aug 302.95%
Aug 312.96%
Sep 13.28%
Sep 23.5%
Sep 33.91%
Sep 44.23%
Sep 54.12%
Sep 64.1%
Sep 73.94%
Sep 83.83%
Sep 94.09%
Sep 104.14%
Sep 114.13%
Sep 124.05%
Sep 133.59%
Sep 143.36%
Sep 153.28%
Sep 163.2%
Sep 173.44%
Sep 183.44%
Sep 193.24%
Sep 203.17%
Sep 212.93%
Sep 223%
Sep 233.36%
Sep 243.57%
Sep 253.92%
Sep 264.05%
Sep 273.94%
Sep 284.13%
Sep 294.29%
Sep 304.62%
Oct 15.16%
Oct 25.33%
Oct 35.43%
Oct 45.44%
Oct 55.24%
Oct 65.41%
Oct 75.61%
Oct 85.7%
Oct 95.88%
Oct 105.64%
Oct 115.31%
Oct 125.16%
Oct 134.91%
Oct 145%
Oct 155.15%
Oct 164.99%
Oct 174.92%
Oct 184.63%
Oct 194.35%
Oct 204.5%
Oct 214.61%
Oct 224.87%
Oct 235.17%
Oct 245.08%
Oct 255.11%
Oct 265.19%
Oct 275.29%
Oct 285.81%
Oct 296.19%
Oct 306.42%
Oct 316.66%
Nov 16.53%
Nov 26.55%
Nov 36.8%
Nov 46.93%
Nov 57.28%
Nov 67.4%
Nov 77.17%
Nov 87.05%
Nov 96.77%
Nov 106.64%
Nov 116.83%
Nov 126.79%
Nov 136.77%
Nov 146.62%
Nov 156.17%
Nov 166.03%
Nov 175.99%

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: funding prints, daily OI and 1-hour candles
History calls
120
Credits
750
Cost per run
≈ $0.075
Backtest prompt
Backtest the "Margin Borrow Squeeze" strategy on DataMaxi+ history.
Thesis: When borrowing a coin to short becomes very expensive and funding turns negative, shorts are paying twice — they tend to cover all at once.

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="TRUMP-USDT", limit="100") — every funding print, 100 per call; about 60 calls
2. open_interest_history_aggregated(token_id="official-trump", interval="1d") — aggregated OI per token; one call covers a year of daily or 30 days of 4h buckets; about 10 calls
3. cex_candle(exchange="binance", market="futures", symbol="TRUMP-USDT", interval="1h") — OHLCV, up to 1,000 candles per call, history from Jan 2024; about 50 calls
Universe: 10 large altcoin perps on Binance
Period: the last 180 days: funding prints, daily OI and 1-hour candles

## Rules to test
Signal: Margin borrow APR for the coin across venues, perp funding and short liquidations.
Entry:  Borrow APR ≥ 30% on two venues, average funding ≤ −0.02%, and open interest still rising: buy the perp.
Exit:   Funding back above 0, or +8%, or 72 hours.
Risk:   Stop −4%. Max 3% of book per coin. Skip if a delisting or unlock notice exists.

## Assumptions
Costs: 0.05% perp taker on entry and exit, 0.1% slippage
Data: Margin borrow rates keep no history, so the borrow filter cannot be tested: run funding ≤ −0.02% with rising OI alone, say so, and count funding received while long in the result.
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 120 history calls ≈ 750 credits ≈ $0.075 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
SignalMargin borrow APR for the coin across venues, perp funding and short liquidations.
EntryBorrow APR ≥ 30% on two venues, average funding ≤ −0.02%, and open interest still rising: buy the perp.
ExitFunding back above 0, or +8%, or 72 hours.
RiskStop −4%. Max 3% of book per coin. Skip if a delisting or unlock notice exists.

Data used

≈ $0.0576 / day
Endpoints this strategy calls, with price and daily cost
MCP tool · REST routeDatasetTierCalls / hCredits / dayUSD / day
margin_borrow
GET /margin-borrow
Margin · feesLatest · 1 cr496$0.0096
funding_rate_latest
GET /funding-rate/latest
Funding rateLatest · 1 cr12288$0.0288
cex_symbol_oi_stats
GET /cex/symbol/oi-stats
Open interestLatest · 1 cr496$0.0096
cex_symbol_liquidation
GET /cex/symbol/liquidation
LiquidationLatest · 1 cr496$0.0096
Total24576$0.0576

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 "Margin Borrow Squeeze" strategy for me with DataMaxi+ data.
Thesis: When borrowing a coin to short becomes very expensive and funding turns negative, shorts are paying twice — they tend to cover all at once.

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. margin_borrow(asset="TRUMP") — Borrow rate and availability per venue; about 4×/hour
2. funding_rate_latest(exchange="binance", symbol="TRUMP-USDT") — Shorts paying longs?; about 12×/hour
3. cex_symbol_oi_stats(base="TRUMP") — Are shorts still being added?; about 4×/hour
4. cex_symbol_liquidation(base="TRUMP", window="1h") — Short liquidations start the squeeze; about 4×/hour

## Rules
Signal: Margin borrow APR for the coin across venues, perp funding and short liquidations.
Entry:  Borrow APR ≥ 30% on two venues, average funding ≤ −0.02%, and open interest still rising: buy the perp.
Exit:   Funding back above 0, or +8%, or 72 hours.
Risk:   Stop −4%. Max 3% of book per coin. Skip if a delisting or unlock notice exists.

## 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 coins with high borrow APR and negative funding, with OI trend and a squeeze score, 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: ~24 calls/hour ≈ 576 credits/day (≈ $0.06/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

  • Expensive borrow can mean real bad news that shorts know about; check notices before entering.
  • Borrow rates update slowly on some venues; treat a single print as noise.
  • A squeeze that does not start within a day often never does — the time stop matters.

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