agentleFS
SKE-LabsSKE-Labs/agent-trading-skills/skills/crypto-trading/funding-rate-trading/SKILL.md

funding-rate-trading

Skill17 starsChanged 4 months agoApache-2.0View on GitHub

Evaluate venue-specific perpetual funding, basis, and delta-neutral carry. Use when normalizing funding history, stress-testing hedge/margin/exchange risks, or testing contrarian funding features.

1 other project uses a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use funding direction to confirm or reject a technical setup

    line 42
  2. Distinctive:

    Test whether funding adds information beyond price-derived features such as RSI

    line 43
  3. Distinctive:

    Treat the setup as a testable hypothesis, not a prediction.

    line 69
  4. Distinctive:

    Use a predeclared persistence window and the contract's actual interval.

    line 77

≈ “Common” is an estimate: at least 1 in 5 of the 372,429 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Funding Rate Trading

Perpetual futures use venue-specific funding mechanisms to influence alignment with spot. Funding and basis can support carry or directional hypotheses, but neither is an arbitrage guarantee or standalone signal.

Funding Rate Basics

  • Positive funding: Longs pay shorts (market is bullish/overleveraged long)
  • Negative funding: Shorts pay longs (market is bearish/overleveraged short)
  • Interval, formula, caps, and settlement are venue-specific. Read the current contract specification before annualizing.

Funding Rate Signals

ObservationWhat it establishesWhat it does not establish
Positive fundingLongs pay shorts for that intervalImminent reversal
Negative fundingShorts pay longs for that intervalMarket bottom
Persistent extreme percentileCrowded carry relative to venue historySafe contrarian entry
Wide perp/spot basisHedge and funding demandGuaranteed convergence

Strategies

1. Funding Rate Arbitrage (Delta Neutral)

  • Long spot + short perp when funding is highly positive
  • Collect funding payments while market-neutral
  • Annualized simple rate = interval rate × actual intervals per year; also report compounded and realized rates separately
  • Enter only when stressed net carry remains positive after fees, basis moves, rebalancing, margin, and custody costs

2. Extreme Funding Reversal Hypothesis

  • Define extremes by the same venue/contract's historical percentile and test positive/negative tails separately.
  • Require an objective price trigger and stress continued crowding; do not wait for or assume a liquidation cascade.

3. Funding as Confirmation

  • Use funding direction to confirm or reject a technical setup
  • Test whether funding adds information beyond price-derived features such as RSI

Workflow

  1. Get current funding rate data:
get_financial_news(topic="BTC perpetual funding rate Binance Bybit")
  1. Check spot price and momentum:
get_candles(symbol="BTC/USD", exchange="binance", interval="4h", count=1)
get_indicators(indicator_code="rsi", symbol="BTC/USD", exchange="binance", interval="4h")
  1. Assess futures-spot premium:
get_financial_news(topic="BTC futures premium spot basis")
  1. Calculate net carry from the venue's actual interval and historical realized rates. Stress a funding flip, spot/perp basis widening, hedge mismatch, and liquidation on either leg.
  2. Report: funding regime (extreme/normal), sentiment implication, arb APR if applicable, and any contrarian trade setup with technical confirmation.

Evidence and Validation

  • Treat the setup as a testable hypothesis, not a prediction. Define thresholds, entry, invalidation, and exit before evaluating outcomes.
  • Calibrate on the same instrument, venue, session, and timeframe. Use closed candles and a held-out or walk-forward sample; record every variant tried.
  • Include spread, fees, slippage, borrow or funding, partial fills, and latency. Reject the setup when net expectancy is not positive or depends on one narrow parameter.
  • Return observed inputs, missing data, cost assumptions, entry, invalidation, exit, and a valid, watch, or no-trade status.
  • Research basis: Coinbase's funding documentation shows that interval, annualization, caps, and settlement are venue-specific; perpetual-futures research documents basis and trading-cost bounds.

Key Rules

  • Use a predeclared persistence window and the contract's actual interval; never assume an 8-hour schedule.
  • Monitor funding, basis, hedge error, collateral, and liquidation state throughout the position.
  • Extreme funding can persist or flip; estimate conditional outcomes rather than predicting a cascade.
  • Same-venue legs reduce transfer latency but concentrate exchange and collateral risk; cross-venue legs introduce transfer and basis risk

Related Skills

  • arbitrage-trading -- funding arb is a specific delta-neutral arbitrage strategy
  • on-chain-analysis -- exchange flow data confirms leverage buildup behind funding extremes

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.