Solana perpetual DEX funding rate arbitrage - scanner and auto-trader. Compares funding rates across Drift and Flash Trade to find and execute cross-DEX arbitrage opportunities. Use when analyzing Solana perp funding rates, finding funding arbitrage, setting up delta-neutral strategies, or running automated funding collection. Includes Monte Carlo simulation, backtesting, and full auto-trading capabilities.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install solana-funding-arb或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install solana-funding-arb⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/solana-funding-arb/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: solana-funding-arb description: Solana perpetual DEX funding rate arbitrage - scanner and auto-trader. Compares funding rates across Drift and Flash Trade to find and execute cross-DEX arbitrage opportunities. Use when analyzing Solana perp funding rates, finding funding arbitrage, setting up delta-neutral strategies, or running automated funding collection. Includes Monte Carlo simulation, backtesting, and full auto-trading capabilities. ---
Automated funding rate arbitrage bot for Solana perpetual DEXes.
| DEX | Markets | Trading | Data Source | |-----|---------|---------|-------------| | Drift Protocol | 64 | ✅ Full | Direct API | | Flash Trade | 19 | 🔶 DRY_RUN | CoinGecko |
| Strategy | Leverage | Win Rate | APY | Max Drawdown | |----------|----------|----------|-----|--------------| | Ultra Safe | 1x | 96% | 126% | 2% | | Conservative | 1.5x | 89% | 203% | 4% | | Moderate | 2.5x | 85% | 411% | 9% |
cd scripts && npm install
# 1. Scan funding rates (no trading)
npm run trade:scan
# 2. Check position status
npm run trade:status
# 3. Run in DRY_RUN mode (simulated)
npm run trade:dry
# 4. Run live trading (requires wallet)
npm run trade
# Other commands
npm run scan # Basic rate scanner
npm run dashboard # Web dashboard (:3456)
npm run monte-carlo # Risk simulations
Config file: ~/.secrets/funding-arb-config.json
{
"strategy": "ultra_safe",
"max_position_pct": 50,
"min_spread": 0.5,
"max_dd_pct": 2,
"auto_execute": true,
"dry_run": true,
"leverage": 1,
"check_interval_hours": 4,
"min_apy_threshold": 100,
"max_position_usd": 100,
"notification": {
"telegram": true,
"on_open": true,
"on_close": true,
"on_funding": true
},
"risk": {
"max_positions": 2,
"stop_loss_pct": 2,
"take_profit_pct": null,
"auto_rebalance": true,
"rebalance_threshold": 0.3
}
}
Create .env in scripts directory or ~/.secrets/.env:
# Required for live trading
SOLANA_PRIVATE_KEY=[1,2,3,...] # Or use wallet file
SOLANA_WALLET_PATH=/path/to/wallet.json
# Optional
SOLANA_RPC_URL=https://mainnet.helius-rpc.com/?api-key=YOUR_KEY
DEBUG=true # Verbose logging
Run every 4 hours:
# Add to crontab -e
0 */4 * * * ~/clawd/skills/solana-funding-arb/scripts/cron-runner.sh
- Go LONG on exchange with negative rate (receive funding) - Go SHORT on exchange with positive rate (receive funding)
SOL Funding Rates:
- Drift: -500% APY (longs receive)
- Flash: +800% APY (shorts receive)
- Spread: 1300% APY
Action:
→ LONG $50 SOL on Drift (receive 500% APY)
→ SHORT $50 SOL on Flash (receive 800% APY)
→ Net: Delta-neutral, collecting ~1300% APY in funding
scripts/
├── src/trading/
│ ├── auto-trader.ts # Main trading logic
│ ├── drift-client.ts # Drift Protocol integration
│ ├── flash-client.ts # Flash Trade integration
│ └── position-manager.ts # Position tracking
├── cron-runner.sh # Cron wrapper script
└── ...
~/.clawd/funding-arb/
├── positions.json # Current positions
├── history.json # Trade history
├── trader-state.json # Bot state
└── logs/ # Cron logs
⚠️ Smart Contract Risk: DEX bugs, hacks ⚠️ Rate Reversal: 15-18% daily probability ⚠️ Execution Slippage: 0.2-0.4% ⚠️ Liquidation: Only with leverage >1x
| Platform | APY | vs Ultra Safe | |----------|-----|---------------| | Ultra Safe (1x) | 126% | — | | US Bank (FDIC) | 4.5% | 28x less | | Aave V3 | 2.5% | 50x less | | Marginfi | 8.5% | 15x less |
dry_run: true (default)npm run trade:scan to verify opportunitiesnpm run trade:dry to test execution flowdry_run: false and max_position_usd: 10~/.clawd/funding-arb/logs/安装 Solana Funding Rate Arbitrage 后,可以对 AI 说这些话来触发它
Help me get started with Solana Funding Rate Arbitrage
Explains what Solana Funding Rate Arbitrage does, walks through the setup, and runs a quick demo based on your current project
Use Solana Funding Rate Arbitrage to solana perpetual DEX funding rate arbitrage - scanner and auto-trader
Invokes Solana Funding Rate Arbitrage with the right parameters and returns the result directly in the conversation
What can I do with Solana Funding Rate Arbitrage in my finance & investment workflow?
Lists the top use cases for Solana Funding Rate Arbitrage, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/solana-funding-arb/ 目录(个人级,所有项目可用),或 .claude/skills/solana-funding-arb/(项目级)。重启 AI 客户端后,用 /solana-funding-arb 主动调用,或让 AI 根据上下文自动发现并使用。
Solana Funding Rate Arbitrage 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Solana Funding Rate Arbitrage 可免费安装使用。请查阅仓库了解许可证信息。
Solana perpetual DEX funding rate arbitrage - scanner and auto-trader. Compares funding rates across Drift and Flash Trade to find and execute cross-DEX arbitrage opportunities. Use when analyzing Solana perp funding rates, finding funding arbitrage, setting up delta-neutral strategies, or running automated funding collection. Includes Monte Carlo simulation, backtesting, and full auto-trading capabilities.
Automate my finance & investment tasks using Solana Funding Rate Arbitrage
Identifies repetitive steps in your workflow and sets up Solana Funding Rate Arbitrage to handle them automatically
Solana Funding Rate Arbitrage 属于「Finance & Investment」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。