Funding Squeeze logo

Funding Squeeze

Organization
Superior-Trade
funding-squeeze

Use when writing a strategy that captures short-squeeze setups on Hyperliquid perps — squeeze, short squeeze fuel, negative funding rally, fade the shorts, paid to long. Goes long when funding APR is deeply negative and price is already rising, then exits on funding normalisation or a time stop. Reads squeeze fuel rather than funding-harvest carry.

Overview

PublisherSuperior-Trade
Repositorysuperior-skills
Skill namefunding-squeeze
Stars
215
Forks
9
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by Superior-Trade on GitHub. Read the source before you install it.

Installation

Install the Funding Squeeze AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Superior-Trade/superior-skills/tree/main/skills/funding-squeeze
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Superior-Trade/superior-skills.git /tmp/superior-skills
mkdir -p .claude/skills
cp -r /tmp/superior-skills/skills/funding-squeeze .claude/skills/funding-squeeze
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Funding Squeeze in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Funding Squeeze on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Funding Squeeze is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Strategy: Funding · Short-Squeeze Fuel

When to use

A user asks for "squeeze trade", "fade the shorts", "short squeeze fuel", "longs eat shorts", "negative funding rally", or any framing where they want to ride the squeeze by going long when the order book is short-heavy and the price is already turning up.

This is the inverse of pure carry: instead of waiting for funding to mean-revert (strategy-funding-rate-arbitrage), this strategy enters when shorts are getting squeezed harder (funding worsening AND price rising), expecting forced unwinds to fuel further upside.

Honest framing — when this works and when it doesn't

Squeeze setups are time-sensitive and regime-dependent:

  • Best regime: choppy or rotating markets where shorts get caught after a deeper pullback. Recent up-move + persistent negative funding = textbook fuel.
  • Worst regime: structural downtrends. Negative funding is normal in bear markets — shorts are right, not trapped. Without confirming up-move, this strategy gets stopped repeatedly.
  • The take-profit problem: squeezes are explosive and reverse fast. Holding past funding normalisation gives the gain back.

Use the time-stop and the funding-flip exit. Don't try to ride the trend after funding turns positive.

Backtest reference

WindowBTC/USDC:USDC 1h, 2026-01-01 → 2026-05-01 (BTC −13% over the window)
Trades8
Win rate38% (3W / 5L)
Wallet PnL−0.75%
Sharpe−0.75
Max drawdown0.75%
Avg holding12h 30m
Backtest ID01kr42gvqnyessxdrsf3qym7sa
Exit-reason mix6 signal exits · 1 trailing-stop win · 1 stoploss

The strategy executed correctly — the negative PnL is a regime call, not a broken implementation. The window covers BTC's −13% slide; long-only squeezes in a structural downtrend get stopped repeatedly. The trailing-stop win shows the trade thesis works when a squeeze actually catches (the one trade that resolved up made +1.3%); the issue is that the entry filter fired on too many bear-market dead-cat bounces.

Two practical refinements before recommending live:

  1. Add a higher-timeframe regime filter (e.g. only enter when 1d close > 1d ema_50). Removes most of the bear-market false starts.
  2. Run on a multi-pair scan rather than BTC alone. Squeezes are uncorrelated across alts — diversification compounds.

See docs/alpha-scan-improvement-plan.md for context on the squeeze-fuel bucket of the alpha scan.

The Freqtrade primitive that makes this work

Same dp.get_pair_dataframe(candle_type="funding_rate") pattern as strategy-funding-rate-arbitrage — Hyperliquid funds hourly and the data is auto-downloaded for backtest. Layer the recent return condition on top.

Reference implementation

python
from freqtrade.strategy import IStrategy
from datetime import datetime
import pandas as pd
import talib.abstract as ta


class FundingSqueezeStrategy(IStrategy):
    minimal_roi = {"0": 100.0}     # exits managed by the funding flip + time stop
    stoploss = -0.04
    trailing_stop = True
    trailing_stop_positive = 0.02
    trailing_stop_positive_offset = 0.03
    trailing_only_offset_is_reached = True
    timeframe = "1h"
    process_only_new_candles = True
    startup_candle_count = 30
    can_short = False

    def populate_indicators(self, dataframe: pd.DataFrame, metadata: dict) -> pd.DataFrame:
        # Funding rate via the dedicated candle type. HL funds hourly.
        try:
            funding = self.dp.get_pair_dataframe(
                pair=metadata["pair"],
                timeframe="1h",
                candle_type="funding_rate",
            )
        except Exception:
            funding = pd.DataFrame()

        if not funding.empty and "open" in funding.columns:
            f = funding[["date", "open"]].rename(columns={"open": "funding_rate"}).copy()
            dataframe = dataframe.merge(f, on="date", how="left")
            dataframe["funding_rate"] = dataframe["funding_rate"].ffill().fillna(0.0)
            # Annualise hourly funding: APR = rate * 24 * 365.
            dataframe["funding_apr"] = dataframe["funding_rate"] * 24 * 365
        else:
            dataframe["funding_rate"] = 0.0
            dataframe["funding_apr"] = 0.0

        # Recent up-move (squeeze fuel needs the move already started).
        dataframe["ret_24h"] = dataframe["close"].pct_change(24)
        dataframe["ret_4h"] = dataframe["close"].pct_change(4)
        dataframe["atr_24"] = ta.ATR(dataframe, timeperiod=24)
        dataframe["vol_avg20"] = dataframe["volume"].rolling(20).mean()
        return dataframe

    def populate_entry_trend(self, dataframe: pd.DataFrame, metadata: dict) -> pd.DataFrame:
        # Long when funding is deeply negative AND price is already rising AND
        # volume confirms (avoid dead-tape squeezes that can't propagate).
        dataframe.loc[
            (dataframe["funding_apr"] < -0.10)
            & (dataframe["ret_24h"] > 0.03)
            & (dataframe["ret_4h"] > 0.0)
            & (dataframe["volume"] > dataframe["vol_avg20"])
            & (dataframe["volume"] > 0),
            "enter_long",
        ] = 1
        return dataframe

    def populate_exit_trend(self, dataframe: pd.DataFrame, metadata: dict) -> pd.DataFrame:
        # Exit when funding flips back to non-negative — the squeeze has been
        # paid out and we're now competing with reset shorts and tired longs.
        dataframe.loc[(dataframe["funding_apr"] >= 0.0), "exit_long"] = 1
        return dataframe

    def custom_exit(self, pair: str, trade, current_time: datetime,
                    current_rate: float, current_profit: float, **kwargs):
        # Squeezes resolve fast. If we haven't gotten paid in 24h the thesis is
        # invalidated; bail rather than wait for the funding flip.
        elapsed_h = (current_time - trade.open_date_utc).total_seconds() / 3600.0
        if elapsed_h >= 24:
            return "timeout_24h"
        return None

Config requirements

json
{
  "exchange": { "name": "hyperliquid", "pair_whitelist": ["BTC/USDC:USDC"] },
  "stake_currency": "USDC",
  "stake_amount": 100,
  "timeframe": "1h",
  "max_open_trades": 1,
  "stoploss": -0.04,
  "trailing_stop": true,
  "trailing_stop_positive": 0.02,
  "trailing_stop_positive_offset": 0.03,
  "trailing_only_offset_is_reached": true,
  "minimal_roi": { "0": 100.0 },
  "trading_mode": "futures",
  "margin_mode": "cross",
  "entry_pricing": { "price_side": "same" },
  "exit_pricing": { "price_side": "same" },
  "pairlists": [{ "method": "StaticPairList" }]
}

Pair format must be <COIN>/USDC:USDC (futures perp) — spot doesn't have funding.

Tunable parameters

KnobEffect
funding_apr < -0.10Stricter (-0.20) → only the deepest squeezes; rare. Looser (-0.05) → more entries, lower per-trade edge.
ret_24h > 0.03The "move already started" filter. Tighter (> 0.05) waits for clearer momentum; looser (> 0.0) catches earlier but noisier.
trailing_stop_positive_offsetWhen trailing kicks in. The squeeze should hand you 3% before you start protecting it.
timeout_24hSqueezes typically resolve within a session. 24h = sane safety net; 12h is more aggressive.

Variants

  • Multi-pair scan: replace StaticPairList with VolumePairList filtered to top 30 perps. Squeezes are uncorrelated across pairs — diversifying captures more.
  • OI-confirmed variant (Phase 2): require oi_delta_4h > 0.05 to confirm fresh shorts entering, not just stale negative funding. Needs OI history feed.
  • Fade-the-squeeze inverse: same setup, but short on extreme squeezes (funding_apr < -0.50) on the assumption the squeeze is exhausted. Higher risk, opposite thesis.

Common pitfalls

  1. Entering before the move starts. Negative funding alone is the carry trade (strategy-funding-rate-arbitrage). Waiting for ret_24h > 0 is what makes this a squeeze trade not a carry trade. Don't drop that filter.
  2. Holding past the funding flip. When funding goes from -0.10 to +0.05, the structural pressure is gone. Holding for "more upside" is just directional speculation — exit and re-evaluate.
  3. Tight stops killing entries. Squeezes are volatile by definition. -0.02 stops chop you out before the move; -0.04 is the practical floor for hourly entries.
  4. Spot pair instead of perp. BTC/USDC doesn't have funding rate data — the entry never fires. Always BTC/USDC:USDC.

Sources

Frequently asked questions

What does the Funding Squeeze AI skill do?

Use when writing a strategy that captures short-squeeze setups on Hyperliquid perps — squeeze, short squeeze fuel, negative funding rally, fade the shorts, paid to long. Goes long when funding APR is deeply negative and price is already rising, then exits on funding normalisation or a time stop. Reads squeeze fuel rather than funding-harvest carry.

Why use Funding Squeeze on TypingMind?

Because you install it once and use it with any model. Funding Squeeze is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Funding Squeeze in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Superior-Trade/superior-skills/tree/main/skills/funding-squeeze. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Funding Squeeze?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Funding Squeeze?

As many as you like. As long as a model supports skills, you can use Funding Squeeze with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Funding Squeeze AI skill free?

Yes. It is published on GitHub by Superior-Trade under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇