Agent skill

Funding Squeeze

by Superior-Trade in Superior-Trade/superior-skills

A skill your agent uses 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.

MITAuto-check passedBusiness, Finance & HR

Install Funding Squeeze

skills CLI
$ npx skills add Superior-Trade/superior-skills --skill funding-squeeze -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Superior-Trade/superior-skills funding-squeeze --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Superior-Trade/superior-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/funding-squeeze .claude/skills/funding-squeeze && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
funding-squeeze
GitHub stars
215
Token cost
~2.3k tokens
SKILL.md length
644 words
Files
1
Skills in repo
31
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses 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.

  • Works in 2 steps: Add a higher-timeframe regime filter… → Run on a multi-pair scan rather than BTC…
  • Writing a strategy that captures short-squeeze setups on Hyperliquid perps — squeeze
  • SKILL.md covers When to use, Honest framing — when this…, Backtest reference and The Freqtrade primitive that…, plus 6 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Funding Squeeze is an agent skill from Superior-Trade/superior-skills. 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.

Its SKILL.md is about 2.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Business, Finance & HR, covering Trading and backtesting. It works with Hyperliquid. The repository describes itself as: Open agent skills and tool schemas for Superior Trade — build, backtest, and deploy trading strategies on Hyperliquid. The licence is MIT.

When your agent uses it

  • Writing a strategy that captures short-squeeze setups on Hyperliquid perps — squeeze
  • Short squeeze fuel
  • Negative funding rally
  • Fade the shorts

Example prompts

  • “/funding-squeeze”

Requirements

  • Python 3

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  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.

What it can do on your machine

Read from SKILL.md and the folder at commit 9d41db5. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are python and json).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • github.com
    • freqtrade.io

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Funding Squeeze loads about 2.3k tokens when it runs. Until then it costs about 92 tokens; SKILL.md has 644 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~92
When it runs · the whole SKILL.md, loaded when a task matches
~2.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Superior-Trade/superior-skills at commit 9d41db5, republished under its MIT licence (© Superior-Trade). 644 words, ~2,324 tokens.

Download SKILL.mdSave it as .claude/skills/funding-squeeze/SKILL.md (or your agent's skills folder).
name
funding-squeeze
description
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.
metadata.version
0.1.0
metadata.updated
2026-05-08

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.

Show full SKILL.md (254 more words)Show less

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

© Superior-Trade, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/funding-squeeze of Superior-Trade/superior-skills.

Open the folder on GitHubat commit 9d41db5

Compare with similar skills

Funding Squeeze next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Funding Squeeze compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Funding Squeeze this skillSuperior-Trade/superior-skills215—~2.3kAutomated safety check: PassMIT
Fintoolsecond-state/fintool316—~5.9kAutomated safety check: PassNone
Moss Trade Bot Factorymoss-site/moss-trade-bot-skills390—~2.2kAutomated safety check: PassMIT-0
Opportunity RadarNunchi-trade/agent-cli521—~1.2kAutomated safety check: PassMIT
Nansen Tradingnansen-ai/nansen-cli139—~3.3kAutomated safety check: NotesMIT
Hyperliquidalsk1992/CloddsBot3k—~1.4kAutomated safety check: PassMIT

Similar skills

  • Fintool

    second-state/fintool

    Financial trading CLIs — spot and perp trading on Hyperliquid, Binance, Coinbase, OKX.

    316 GitHub stars~5.9k tokensUpdated 4 mo ago
    Business, Finance & HRAuto-check passed
  • Moss Trade Bot Factory

    moss-site/moss-trade-bot-skills

    用户用自然语言描述币种、回测时间区间和策略风格时,自动创建加密货币交易 Bot,读取内置 Hyperliquid CSV 覆盖并运行本地回测/进化;若币种、时间区间或策略风格缺失,则主动询问缺失项并展示 CSV 解析出的可用回测区间。也可在回测后上传平台 verify 或创建模拟实盘 Bot。适用于创建bot、交易策略、回测、backtest、evolve、upload verify、live…

    390 GitHub stars~2.2k tokensUpdated 1 mo ago
    Business, Finance & HRAuto-check passed
  • Opportunity Radar

    Nunchi-trade/agent-cli

    Screens all Hyperliquid perps and surfaces top trading setups

    521 GitHub stars~1.2k tokensUpdated 3 mo ago
    Business, Finance & HRAuto-check passed
  • Nansen Trading

    nansen-ai/nansen-cli

    Execute DEX swaps on Solana or Base (including cross-chain bridges) and Hyperliquid perpetual trades.

    139 GitHub stars~3.3k tokensUpdated 2 days ago
    Business, Finance & HRAuto-check: notes
  • Hyperliquid

    alsk1992/CloddsBot

    Hyperliquid L1 perps DEX (69% market share). An agent skill from alsk1992/CloddsBot.

    3k GitHub stars~1.4k tokensUpdated 8 days ago
    Business, Finance & HRAuto-check passed
  • Trading Futures

    alsk1992/CloddsBot

    Trade perpetual futures on Binance, Bybit, Hyperliquid, MEXC with up to 200x leverage

    3k GitHub stars~5.6k tokensUpdated 8 days ago
    Business, Finance & HRAuto-check passed

More from Superior-Trade/superior-skills

All 31 skills in this repo
  • Superior Trade Auth

    Superior-Trade/superior-skills

    A skill your agent uses when an agent needs to register a Superior Trade account, verify an email OTP, configure x-api-key authentication, or recover from missing or invalid credentials before using…

    215 GitHub stars~950 tokensUpdated 1 mo ago
    Auto-check passed
  • Deposit Qr

    Superior-Trade/superior-skills

    A skill your agent uses when a user needs a QR code or wallet payment URI to fund a Superior-managed EVM wallet on a specific chain before using Lighter, Polymarket, Hyperliquid, or other Superior…

    215 GitHub stars~1.1k tokensUpdated 1 mo ago
    Auto-check passed
  • External Deposit

    Superior-Trade/superior-skills

    A skill your agent uses when a user wants to fund or bridge from an external wallet through a third-party UI such as Relay, especially when asking for MetaMask Mobile QR codes, bridge links…

    215 GitHub stars~1.7k tokensUpdated 1 mo ago
    Auto-check passed
  • Aerodrome

    Superior-Trade/superior-skills

    A skill your agent uses when creating, validating, backtesting, deploying, sizing, or troubleshooting Aerodrome/Base spot trading strategies through the Superior Trade API, especially Freqtrade…

    215 GitHub stars~2.3k tokensUpdated 1 mo ago
    Auto-check passed
  • Polymarket

    Superior-Trade/superior-skills

    A skill your agent uses when the user wants to trade, research, or backtest Polymarket prediction markets through Superior Trade — finding markets by slug or event URL, placing a single immediate…

    215 GitHub stars~4.2k tokensUpdated 1 mo ago
    Auto-check passed
  • Backtesting

    Superior-Trade/superior-skills

    A skill your agent uses when running, interpreting, or designing backtests on Superior Trade — anything about backtest windows, trade-count thresholds, exit-reason mix, parameter sweeps…

    215 GitHub stars~2.9k tokensUpdated 1 mo ago
    Auto-check passed

Works with

Questions about Funding Squeeze

What does Funding Squeeze do?

A skill your agent uses 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. Funding Squeeze is an agent skill from Superior-Trade/superior-skills. 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.

When should I use Funding Squeeze?

Funding Squeeze fits situations like: writing a strategy that captures short-squeeze setups on Hyperliquid perps — squeeze; short squeeze fuel; negative funding rally; fade the shorts.

How do I install Funding Squeeze in Claude Code?

Run `npx skills add Superior-Trade/superior-skills --skill funding-squeeze -a claude-code`. Or copy the skill folder (skills/funding-squeeze in Superior-Trade/superior-skills) into .claude/skills/funding-squeeze in your project. Claude Code loads it when a task matches its description.

How do I install Funding Squeeze in Codex?

Run `npx skills add Superior-Trade/superior-skills --skill funding-squeeze -a codex`. Or copy the skill folder (skills/funding-squeeze in Superior-Trade/superior-skills) into .agents/skills/funding-squeeze in your project. Codex loads it when a task matches its description.

Can I use Funding Squeeze in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Superior-Trade/superior-skills --skill funding-squeeze -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/funding-squeeze, .gemini/skills/funding-squeeze, .github/skills/funding-squeeze and .opencode/skills/funding-squeeze in your project.

What does Funding Squeeze need to run?

SKILL.md names no scripts, command-line tools or credentials: Funding Squeeze is instructions for the agent only. Our summary lists: Python 3.

Does Funding Squeeze access the network?

SKILL.md names 2 domains. As links in the text: github.com and freqtrade.io. This is read from the text; nothing was executed.

Is Funding Squeeze safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Funding Squeeze use?

Funding Squeeze is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Funding Squeeze use?

About 2.3k tokens (SKILL.md is roughly 9.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Funding Squeeze?

Skills that share tags, products or a category with Funding Squeeze: Fintool (second-state/fintool, 316 stars), Moss Trade Bot Factory (moss-site/moss-trade-bot-skills, 390 stars), Opportunity Radar (Nunchi-trade/agent-cli, 521 stars) and Nansen Trading (nansen-ai/nansen-cli, 139 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Funding Squeeze?

Superior-Trade (a GitHub organization) maintains it in Superior-Trade/superior-skills, which has 215 GitHub stars. The repository holds 31 skills in this directory. The repository was last updated on September 10, 2026.

Source: Superior-Trade/superior-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.