Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
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.
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.
This item is timing out or returning errors right now. Review the source page and try again later.
Use the source page and any available docs to guide the install because the item is currently unstable or timing out.
I tried to install a skill package from Yavira, but the item is currently unstable or timing out. Inspect the source page and any extracted docs, then tell me what you can confirm and any manual steps still required.
I tried to upgrade a skill package from Yavira, but the item is currently unstable or timing out. Compare the source page and any extracted docs with my current installation, then summarize what changed and what manual follow-up I still need.
Automated funding rate arbitrage bot for Solana perpetual DEXes.
Auto-Trading: Fully automated position management Multi-DEX Support: Drift Protocol + Flash Trade Position Manager: Track PnL and funding collected Risk Management: Stop-loss, max DD, auto-rebalancing Cron Integration: Scheduled rate checks
DEXMarketsTradingData SourceDrift Protocol64โ FullDirect APIFlash Trade19๐ถ DRY_RUNCoinGecko
StrategyLeverageWin RateAPYMax DrawdownUltra Safe1x96%126%2%Conservative1.5x89%203%4%Moderate2.5x85%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
Scan: Compare funding rates on Drift vs Flash Trade Identify: Find pairs where one is paying and other is receiving Execute: Go LONG on exchange with negative rate (receive funding) Go SHORT on exchange with positive rate (receive funding) Collect: Delta-neutral = collect funding from both sides Rebalance: Close when spread reverses or DD exceeded
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
PlatformAPYvs Ultra SafeUltra Safe (1x)126%โUS Bank (FDIC)4.5%28x lessAave V32.5%50x lessMarginfi8.5%15x less
Start with dry_run: true (default) Run npm run trade:scan to verify opportunities Run npm run trade:dry to test execution flow When ready, set dry_run: false and max_position_usd: 10 Monitor logs at ~/.clawd/funding-arb/logs/
Drift Protocol Docs Flash Trade API Reference
Code helpers, APIs, CLIs, browser automation, testing, and developer operations.
Largest current source with strong distribution and engagement signals.