funding-optimizer

funding-optimizer is a skill for Claude Code, Codex from kayzaa/k.i.t.-bot. It costs 0 tokens per session (1,074 once invoked), scanned A, a copy of funding-optimizer, MIT.

A trading skill for comparing perpetual-futures funding rates across exchanges and finding ways to earn funding while keeping market exposure near zero. Perpetual futures are contracts without an expiry date, and funding payments help keep their prices near the underlying asset.

In plain words
What is it for?
Use it to compare funding opportunities, plan cash-and-carry or cross-exchange trades, hedge positions, rebalance exposure, and manage liquidation risk.
Why use it?
It gathers rate, spread, yield, and risk information that would otherwise need to be tracked across several exchanges.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it to compare funding opportunities, plan cash-and-carry or cross-exchange trades, hedge positions, rebalance exposure, and manage liquidation risk.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kayzaa/k.i.t.-bot/funding-optimizer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add kayzaa/k.i.t.-bot --skill funding-optimizer
Clone the repo
git clone --depth 1 https://github.com/kayzaa/k.i.t.-bot

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for funding-optimizer

README.md
[![agentmods](https://agentmods.dev/badge/skills/kayzaa/k.i.t.-bot/funding-optimizer/github.svg)](https://agentmods.dev/skills/kayzaa/k.i.t.-bot/funding-optimizer)
Your own site
<a href="https://agentmods.dev/skills/kayzaa/k.i.t.-bot/funding-optimizer"><img src="https://agentmods.dev/badge/skills/kayzaa/k.i.t.-bot/funding-optimizer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for funding-optimizer

Your own site · 80×15
<a href="https://agentmods.dev/skills/kayzaa/k.i.t.-bot/funding-optimizer"><img src="https://agentmods.dev/badge/skills/kayzaa/k.i.t.-bot/funding-optimizer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,074 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01074
Opus 5 $0.00000 $0.00537
Sonnet 5 $0.00000 $0.00215
Haiku 4.5 $0.00000 $0.00107

Measured 9d ago against content hash 461c8f47aa53, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

funding-optimizer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to funding-optimizer — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/funding-optimizer/SKILL.md · 135 lines

How it starts

The opening of the file, as written. The whole thing — 135 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Funding Rate Optimizer Skill

Category: Trading
Inspired by: Coinglass, Velo Data, Laevitas

Overview

Maximize funding rate income on perpetual futures. Track funding across exchanges, find best rates, and automate delta-neutral funding harvesting strategies.

Features

1. Funding Rate Dashboard

  • Real-Time Rates: All exchanges, all pairs
  • Historical Data: 30/60/90 day averages
  • Annualized Yield: APY from funding alone
  • Next Funding: Countdown timers
  • Rate Predictions: ML-based forecasts

2. Exchange Comparison

  • Binance: 8-hour funding
  • Bybit: 8-hour funding
  • OKX: 8-hour funding
  • dYdX: 1-hour funding
  • GMX/GNS: Real-time funding
  • Hyperliquid: 1-hour funding

3. Funding Strategies

  • Cash & Carry: Spot long + perp short
  • Cross-Exchange: Long on low, short on high
  • Directional Bias: Harvest + trend trade
  • Stablecoin Yield: Fund rate on stables

4. Delta-Neutral Automation

  • Auto-Hedge: Open spot position to offset perp
  • Rebalance: Keep delta near zero
  • Basis Tracking: Monitor spot-perp spread
  • Liquidation Guard: Safe margin management
  • Profit Taking: Compound or withdraw

5. Risk Management

  • Funding Rate Flip Alert: When rate changes sign
  • Liquidation Distance: Monitor margin safety
  • Correlation Check: Ensure hedge effectiveness
  • Max Position Size: Per pair limits
  • Stop Loss: Exit if strategy unprofitable

Commands

kit funding rates --sort apy --min-volume 10m
kit funding compare BTC --exchanges binance,bybit,okx
kit funding history ETH --period 30d
kit funding harvest BTC --budget 10000 --strategy cash-carry
kit funding positions --status active
kit funding pnl --period 7d
kit funding alerts --add BTC --threshold 0.1%

Output Format

{
  "timestamp": "2026-02-11T21:35:00Z",
  "top_rates": [
    {
      "symbol": "BTC/USDT",
      "exchange": "Binance",
      "current_rate": "+0.0234%",
      "annualized": "+25.7%",
      "next_funding": "2h 15m",
      "predicted_rate": "+0.0198%",
      "volume_24h": "$8.5B",
      "open_interest": "$4.2B"
    },
    {
      "symbol": "ETH/USDT",
      "exchange": "Bybit",
      "current_rate": "+0.0312%",
      "annualized": "+34.2%",
      "next_funding": "2h 15m"
    }
  ],
  "arbitrage_opportunities": [
    {
      "symbol": "SOL",
      "long_exchange": "OKX",
      "long_rate": "+0.005%",
      "short_exchange": "Binance",
      "short_rate": "+0.032%",
      "spread": "0.027%",
      "annualized_arb": "+29.6%",
      "capital_required": "$20,000 (split)"
    }
  ],
  "active_positions": [
    {
      "strategy": "cash_carry",
      "pair": "BTC/USDT",
      "spot_position": "+0.5 BTC @ $45,000",
      "perp_position": "-0.5 BTC @ $45,100",
      "basis": "+$100 (+0.22%)",
      "funding_earned": "$234.50",
      "pnl_total": "+$312.20",
      "apy_realized": "+28.4%",
      "delta": "-0.002 BTC",
      "days_active": 14
    }
  ]
}

Read the full file on GitHub · 135 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 135 lines · 0 tokens per session scan A 461c8f47aa53

Subscribe to this mod's changes

funding-optimizer is a skill published in the GitHub repository kayzaa/k.i.t.-bot (5 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,074 tokens. A static security scan graded it A with 0 findings. It is 100% identical to funding-optimizer, differing in 0 lines, and is treated as a copy.