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.
- SignalBorrow ≥ 30% APR
- EntryLong the perp
- ExitFunding ≥ 0 or +8%
How it works
One direction · holds 1–3 days- 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
- SignalBorrow ≥ 30% APRMargin borrow rate on two venues, with funding
- EntryLong the perpFunding ≤ −0.02% and open interest still rising
- ExitFunding ≥ 0 or +8%Or 72 hours in the trade
- RiskStop −4%3% of book; skip coins with event notices
The signal
TRUMP · margin borrow APR · Binance · sample| Date (UTC) | Borrow APR |
|---|---|
| Oct 4 | 8.49% |
| Oct 5 | 11.91% |
| Oct 6 | 12.43% |
| Oct 7 | 12.23% |
| Oct 8 | 14.26% |
| Oct 9 | 15.29% |
| Oct 10 | 13.15% |
| Oct 11 | 11.92% |
| Oct 12 | 13.21% |
| Oct 13 | 13.1% |
| Oct 14 | 11.54% |
| Oct 15 | 12.81% |
| Oct 16 | 15.92% |
| Oct 17 | 16.64% |
| Oct 18 | 16.55% |
| Oct 19 | 18.89% |
| Oct 20 | 20.64% |
| Oct 21 | 18.9% |
| Oct 22 | 17.27% |
| Oct 23 | 17.82% |
| Oct 24 | 16.85% |
| Oct 25 | 13.78% |
| Oct 26 | 13.11% |
| Oct 27 | 14.71% |
| Oct 28 | 14.42% |
| Oct 29 | 13.37% |
| Oct 30 | 15.14% |
| Oct 31 | 51.13% |
| Nov 1 | 45.1% |
| Nov 2 | 39.44% |
| Nov 3 | 36.48% |
| Nov 4 | 32.51% |
| Nov 5 | 26.25% |
| Nov 6 | 22.09% |
| Nov 7 | 20.66% |
| Nov 8 | 17.9% |
| Nov 9 | 14.52% |
| Nov 10 | 14.48% |
| Nov 11 | 15.8% |
| Nov 12 | 14.56% |
| Nov 13 | 13.12% |
| Nov 14 | 14.16% |
| Nov 15 | 14.14% |
| Nov 16 | 11.06% |
| Nov 17 | 9.03% |
Sample backtest
Sample · illustrative 180D · not real performance| Date (UTC) | Equity |
|---|---|
| Jul 21 | -0.13% |
| Jul 22 | 0.13% |
| Jul 23 | 0.24% |
| Jul 24 | 0.47% |
| Jul 25 | 0.59% |
| Jul 26 | 0.39% |
| Jul 27 | 0.47% |
| Jul 28 | 0.63% |
| Jul 29 | 0.87% |
| Jul 30 | 1.44% |
| Jul 31 | 1.7% |
| Aug 1 | 1.84% |
| Aug 2 | 1.97% |
| Aug 3 | 1.85% |
| Aug 4 | 2.05% |
| Aug 5 | 2.39% |
| Aug 6 | 2.57% |
| Aug 7 | 2.88% |
| Aug 8 | 2.82% |
| Aug 9 | 2.54% |
| Aug 10 | 2.46% |
| Aug 11 | 2.27% |
| Aug 12 | 2.32% |
| Aug 13 | 2.53% |
| Aug 14 | 2.38% |
| Aug 15 | 2.27% |
| Aug 16 | 1.98% |
| Aug 17 | 1.57% |
| Aug 18 | 1.58% |
| Aug 19 | 1.62% |
| Aug 20 | 1.72% |
| Aug 21 | 1.96% |
| Aug 22 | 1.81% |
| Aug 23 | 1.69% |
| Aug 24 | 1.71% |
| Aug 25 | 1.69% |
| Aug 26 | 2.1% |
| Aug 27 | 2.51% |
| Aug 28 | 2.72% |
| Aug 29 | 3% |
| Aug 30 | 2.95% |
| Aug 31 | 2.96% |
| Sep 1 | 3.28% |
| Sep 2 | 3.5% |
| Sep 3 | 3.91% |
| Sep 4 | 4.23% |
| Sep 5 | 4.12% |
| Sep 6 | 4.1% |
| Sep 7 | 3.94% |
| Sep 8 | 3.83% |
| Sep 9 | 4.09% |
| Sep 10 | 4.14% |
| Sep 11 | 4.13% |
| Sep 12 | 4.05% |
| Sep 13 | 3.59% |
| Sep 14 | 3.36% |
| Sep 15 | 3.28% |
| Sep 16 | 3.2% |
| Sep 17 | 3.44% |
| Sep 18 | 3.44% |
| Sep 19 | 3.24% |
| Sep 20 | 3.17% |
| Sep 21 | 2.93% |
| Sep 22 | 3% |
| Sep 23 | 3.36% |
| Sep 24 | 3.57% |
| Sep 25 | 3.92% |
| Sep 26 | 4.05% |
| Sep 27 | 3.94% |
| Sep 28 | 4.13% |
| Sep 29 | 4.29% |
| Sep 30 | 4.62% |
| Oct 1 | 5.16% |
| Oct 2 | 5.33% |
| Oct 3 | 5.43% |
| Oct 4 | 5.44% |
| Oct 5 | 5.24% |
| Oct 6 | 5.41% |
| Oct 7 | 5.61% |
| Oct 8 | 5.7% |
| Oct 9 | 5.88% |
| Oct 10 | 5.64% |
| Oct 11 | 5.31% |
| Oct 12 | 5.16% |
| Oct 13 | 4.91% |
| Oct 14 | 5% |
| Oct 15 | 5.15% |
| Oct 16 | 4.99% |
| Oct 17 | 4.92% |
| Oct 18 | 4.63% |
| Oct 19 | 4.35% |
| Oct 20 | 4.5% |
| Oct 21 | 4.61% |
| Oct 22 | 4.87% |
| Oct 23 | 5.17% |
| Oct 24 | 5.08% |
| Oct 25 | 5.11% |
| Oct 26 | 5.19% |
| Oct 27 | 5.29% |
| Oct 28 | 5.81% |
| Oct 29 | 6.19% |
| Oct 30 | 6.42% |
| Oct 31 | 6.66% |
| Nov 1 | 6.53% |
| Nov 2 | 6.55% |
| Nov 3 | 6.8% |
| Nov 4 | 6.93% |
| Nov 5 | 7.28% |
| Nov 6 | 7.4% |
| Nov 7 | 7.17% |
| Nov 8 | 7.05% |
| Nov 9 | 6.77% |
| Nov 10 | 6.64% |
| Nov 11 | 6.83% |
| Nov 12 | 6.79% |
| Nov 13 | 6.77% |
| Nov 14 | 6.62% |
| Nov 15 | 6.17% |
| Nov 16 | 6.03% |
| Nov 17 | 5.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 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 | 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. |
Data used
≈ $0.0576 / day| MCP tool · REST route | Dataset | Tier | Calls / h | Credits / day | USD / day |
|---|---|---|---|---|---|
margin_borrow GET /margin-borrow | Margin · fees | Latest · 1 cr | 4 | 96 | $0.0096 |
funding_rate_latest GET /funding-rate/latest | Funding rate | Latest · 1 cr | 12 | 288 | $0.0288 |
cex_symbol_oi_stats GET /cex/symbol/oi-stats | Open interest | Latest · 1 cr | 4 | 96 | $0.0096 |
cex_symbol_liquidation GET /cex/symbol/liquidation | Liquidation | Latest · 1 cr | 4 | 96 | $0.0096 |
| Total | 24 | 576 | $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.