File contents Funding Rate Arbitrage Skill
Exploit funding rate differences between perpetual futures contracts.
Capabilities
Rate Monitoring
Real-time funding rates from 10+ exchanges
Historical funding rate database
Rate prediction using ML
Cross-exchange comparison matrix
Countdown timers to funding events
Arbitrage Strategies
Cash-and-Carry
Long spot + short perp when funding positive
Short spot (margin) + long perp when funding negative
Automated entry/exit based on rate thresholds
Position sizing based on expected APY
Cross-Exchange Funding Arb
Long perp on low-rate exchange
Short perp on high-rate exchange
Delta-neutral positioning
Fee optimization
Rate Prediction Trading
Enter before funding rates spike
ML-based rate prediction (LSTM)
Sentiment correlation analysis
Open interest impact modeling
Risk Management
Maximum position per exchange
Liquidation price monitoring
Margin utilization alerts
Basis risk hedging
Exchange counterparty limits
Supported Exchanges
Binance Futures
Bybit
OKX
dYdX
GMX
Hyperliquid
Drift Protocol
Vertex Protocol
BitMEX
Kraken Futures
Configuration
{
"skills": {
"funding-rate-arb": {
"enabled": true,
"minAnnualizedRate": 10,
"maxPositionSize": 10000,
"exchanges": ["binance", "bybit", "okx"],
"strategy": "cash-and-carry",
"autoRebalance": true,
"marginBuffer": 0.2
}
}
}
Commands
funding rates - Show current rates across exchanges
funding opportunities - List profitable arb opportunities
funding history [symbol] - Historical rates chart
funding predict [symbol] - ML rate prediction
funding start [strategy] - Start automated funding arb
funding positions - Show current arb positions
funding pnl - Calculate funding earned
API Endpoints
GET /api/funding/rates - Current rates
GET /api/funding/opportunities - Arb opportunities
GET /api/funding/history/:symbol - Historical data
POST /api/funding/strategy - Start strategy
GET /api/funding/positions - Active positions
Example Output
📊 Funding Rate Opportunities
BTC-PERP:
├─ Binance: +0.0234% (8h) → 28.5% APY
├─ Bybit: +0.0189% (8h) → 23.0% APY
├─ OKX: +0.0156% (8h) → 19.0% APY
└─ Best Arb: Long Bybit / Short Binance = 5.5% APY spread
ETH-PERP:
├─ Binance: +0.0312% (8h) → 37.9% APY
├─ dYdX: +0.0089% (8h) → 10.8% APY
└─ Best Arb: Long dYdX / Short Binance = 27.1% APY spread
💰 Recommended: BTC cash-and-carry on Binance
Expected APY: 28.5% (minus 2% fees = 26.5% net)
Suggested size: $5,000 spot + $5,000 short
Safety Features
Position limits per exchange
Automatic deleveraging detection
Funding rate sanity checks
Exchange API rate limiting
Liquidation proximity alerts
1 --- 2 name: funding-rate-arb 3 description: Funding Rate Arbitrage Skill 4 --- 5 # Funding Rate Arbitrage Skill 6 7 Exploit funding rate differences between perpetual futures contracts. 8 9 ## Capabilities 10 11 ### Rate Monitoring 12 - Real-time funding rates from 10+ exchanges 13 - Historical funding rate database 14 - Rate prediction using ML 15 - Cross-exchange comparison matrix 16 - Countdown timers to funding events 17 18 ### Arbitrage Strategies 19 20 #### Cash-and-Carry 21 - Long spot + short perp when funding positive 22 - Short spot (margin) + long perp when funding negative 23 - Automated entry/exit based on rate thresholds 24 - Position sizing based on expected APY 25 26 #### Cross-Exchange Funding Arb 27 - Long perp on low-rate exchange 28 - Short perp on high-rate exchange 29 - Delta-neutral positioning 30 - Fee optimization 31 32 #### Rate Prediction Trading 33 - Enter before funding rates spike 34 - ML-based rate prediction (LSTM) 35 - Sentiment correlation analysis 36 - Open interest impact modeling 37 38 ### Risk Management 39 - Maximum position per exchange 40 - Liquidation price monitoring 41 - Margin utilization alerts 42 - Basis risk hedging 43 - Exchange counterparty limits 44 45 ### Supported Exchanges 46 - Binance Futures 47 - Bybit 48 - OKX 49 - dYdX 50 - GMX 51 - Hyperliquid 52 - Drift Protocol 53 - Vertex Protocol 54 - BitMEX 55 - Kraken Futures 56 57 ## Configuration 58 59 ```json 60 { 61 "skills": { 62 "funding-rate-arb": { 63 "enabled": true, 64 "minAnnualizedRate": 10, 65 "maxPositionSize": 10000, 66 "exchanges": ["binance", "bybit", "okx"], 67 "strategy": "cash-and-carry", 68 "autoRebalance": true, 69 "marginBuffer": 0.2 70 } 71 } 72 } 73 ``` 74 75 ## Commands 76 77 - `funding rates` - Show current rates across exchanges 78 - `funding opportunities` - List profitable arb opportunities 79 - `funding history [symbol]` - Historical rates chart 80 - `funding predict [symbol]` - ML rate prediction 81 - `funding start [strategy]` - Start automated funding arb 82 - `funding positions` - Show current arb positions 83 - `funding pnl` - Calculate funding earned 84 85 ## API Endpoints 86 87 - `GET /api/funding/rates` - Current rates 88 - `GET /api/funding/opportunities` - Arb opportunities 89 - `GET /api/funding/history/:symbol` - Historical data 90 - `POST /api/funding/strategy` - Start strategy 91 - `GET /api/funding/positions` - Active positions 92 93 ## Example Output 94 95 ``` 96 📊 Funding Rate Opportunities 97 98 BTC-PERP: 99 ├─ Binance: +0.0234% (8h) → 28.5% APY 100 ├─ Bybit: +0.0189% (8h) → 23.0% APY 101 ├─ OKX: +0.0156% (8h) → 19.0% APY 102 └─ Best Arb: Long Bybit / Short Binance = 5.5% APY spread 103 104 ETH-PERP: 105 ├─ Binance: +0.0312% (8h) → 37.9% APY 106 ├─ dYdX: +0.0089% (8h) → 10.8% APY 107 └─ Best Arb: Long dYdX / Short Binance = 27.1% APY spread 108 109 💰 Recommended: BTC cash-and-carry on Binance 110 Expected APY: 28.5% (minus 2% fees = 26.5% net) 111 Suggested size: $5,000 spot + $5,000 short 112 ``` 113 114 ## Safety Features 115 116 - Position limits per exchange 117 - Automatic deleveraging detection 118 - Funding rate sanity checks 119 - Exchange API rate limiting 120 - Liquidation proximity alerts
Signal-Execution-Labs/forex-trading-ai-agent/tree/main/skills/funding-rate-arb commit d3bb1d2ac4
Frequently asked questions How do I install the Funding Rate Arb skill? Run npx skillmds@latest add signal-execution-labs/funding-rate-arb in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the Funding Rate Arb skill do? Funding Rate Arbitrage Skill It is listed under Coding & Dev Tools on SkillMD.
Is Funding Rate Arb safe to use? This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with Funding Rate Arb? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is Funding Rate Arb free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published Funding Rate Arb? Signal-Execution-Labs (@signal-execution-labs) published this skill. Their other Agent Skills are listed on their SkillMD profile.