{
  "schemaVersion": "1.0",
  "item": {
    "slug": "solana-funding-arb-cn",
    "name": "Solana Funding Arb Cn",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/guohongbin-git/solana-funding-arb-cn",
    "canonicalUrl": "https://clawhub.ai/guohongbin-git/solana-funding-arb-cn",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/solana-funding-arb-cn",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=solana-funding-arb-cn",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "USER_GUIDE.md",
      "_meta.json",
      "references/api.md",
      "references/setup.md",
      "references/strategies.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/solana-funding-arb-cn"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/solana-funding-arb-cn",
    "agentPageUrl": "https://openagent3.xyz/skills/solana-funding-arb-cn/agent",
    "manifestUrl": "https://openagent3.xyz/skills/solana-funding-arb-cn/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/solana-funding-arb-cn/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Solana Funding Rate Arbitrage (v2.0)",
        "body": "Automated funding rate arbitrage bot for Solana perpetual DEXes."
      },
      {
        "title": "🔥 What's New in v2.0",
        "body": "Auto-Trading: Fully automated position management\nMulti-DEX Support: Drift Protocol + Flash Trade\nPosition Manager: Track PnL and funding collected\nRisk Management: Stop-loss, max DD, auto-rebalancing\nCron Integration: Scheduled rate checks"
      },
      {
        "title": "Supported DEXes",
        "body": "DEXMarketsTradingData SourceDrift Protocol64✅ FullDirect APIFlash Trade19🔶 DRY_RUNCoinGecko"
      },
      {
        "title": "Strategy Options",
        "body": "StrategyLeverageWin RateAPYMax DrawdownUltra Safe1x96%126%2%Conservative1.5x89%203%4%Moderate2.5x85%411%9%"
      },
      {
        "title": "Quick Start",
        "body": "cd scripts && npm install\n\n# 1. Scan funding rates (no trading)\nnpm run trade:scan\n\n# 2. Check position status\nnpm run trade:status\n\n# 3. Run in DRY_RUN mode (simulated)\nnpm run trade:dry\n\n# 4. Run live trading (requires wallet)\nnpm run trade\n\n# Other commands\nnpm run scan        # Basic rate scanner\nnpm run dashboard   # Web dashboard (:3456)\nnpm run monte-carlo # Risk simulations"
      },
      {
        "title": "Configuration",
        "body": "Config file: ~/.secrets/funding-arb-config.json\n\n{\n  \"strategy\": \"ultra_safe\",\n  \"max_position_pct\": 50,\n  \"min_spread\": 0.5,\n  \"max_dd_pct\": 2,\n  \"auto_execute\": true,\n  \"dry_run\": true,\n  \"leverage\": 1,\n  \"check_interval_hours\": 4,\n  \"min_apy_threshold\": 100,\n  \"max_position_usd\": 100,\n  \"notification\": {\n    \"telegram\": true,\n    \"on_open\": true,\n    \"on_close\": true,\n    \"on_funding\": true\n  },\n  \"risk\": {\n    \"max_positions\": 2,\n    \"stop_loss_pct\": 2,\n    \"take_profit_pct\": null,\n    \"auto_rebalance\": true,\n    \"rebalance_threshold\": 0.3\n  }\n}"
      },
      {
        "title": "Environment Variables",
        "body": "Create .env in scripts directory or ~/.secrets/.env:\n\n# Required for live trading\nSOLANA_PRIVATE_KEY=[1,2,3,...]  # Or use wallet file\nSOLANA_WALLET_PATH=/path/to/wallet.json\n\n# Optional\nSOLANA_RPC_URL=https://mainnet.helius-rpc.com/?api-key=YOUR_KEY\nDEBUG=true  # Verbose logging"
      },
      {
        "title": "Cron Setup",
        "body": "Run every 4 hours:\n\n# Add to crontab -e\n0 */4 * * * ~/clawd/skills/solana-funding-arb/scripts/cron-runner.sh"
      },
      {
        "title": "How It Works",
        "body": "Scan: Compare funding rates on Drift vs Flash Trade\nIdentify: Find pairs where one is paying and other is receiving\nExecute:\n\nGo LONG on exchange with negative rate (receive funding)\nGo SHORT on exchange with positive rate (receive funding)\n\n\nCollect: Delta-neutral = collect funding from both sides\nRebalance: Close when spread reverses or DD exceeded"
      },
      {
        "title": "Example Trade",
        "body": "SOL Funding Rates:\n- Drift: -500% APY (longs receive)\n- Flash: +800% APY (shorts receive)\n- Spread: 1300% APY\n\nAction:\n→ LONG $50 SOL on Drift (receive 500% APY)\n→ SHORT $50 SOL on Flash (receive 800% APY)\n→ Net: Delta-neutral, collecting ~1300% APY in funding"
      },
      {
        "title": "Files",
        "body": "scripts/\n├── src/trading/\n│   ├── auto-trader.ts      # Main trading logic\n│   ├── drift-client.ts     # Drift Protocol integration\n│   ├── flash-client.ts     # Flash Trade integration\n│   └── position-manager.ts # Position tracking\n├── cron-runner.sh          # Cron wrapper script\n└── ...\n\n~/.clawd/funding-arb/\n├── positions.json          # Current positions\n├── history.json           # Trade history\n├── trader-state.json      # Bot state\n└── logs/                  # Cron logs"
      },
      {
        "title": "Risks",
        "body": "⚠️ Smart Contract Risk: DEX bugs, hacks\n⚠️ Rate Reversal: 15-18% daily probability\n⚠️ Execution Slippage: 0.2-0.4%\n⚠️ Liquidation: Only with leverage >1x"
      },
      {
        "title": "Yield Comparison",
        "body": "PlatformAPYvs Ultra SafeUltra Safe (1x)126%—US Bank (FDIC)4.5%28x lessAave V32.5%50x lessMarginfi8.5%15x less"
      },
      {
        "title": "Testing",
        "body": "Start with dry_run: true (default)\nRun npm run trade:scan to verify opportunities\nRun npm run trade:dry to test execution flow\nWhen ready, set dry_run: false and max_position_usd: 10\nMonitor logs at ~/.clawd/funding-arb/logs/"
      },
      {
        "title": "References",
        "body": "Drift Protocol Docs\nFlash Trade\nAPI Reference"
      }
    ],
    "body": "Solana Funding Rate Arbitrage (v2.0)\n\nAutomated funding rate arbitrage bot for Solana perpetual DEXes.\n\n🔥 What's New in v2.0\nAuto-Trading: Fully automated position management\nMulti-DEX Support: Drift Protocol + Flash Trade\nPosition Manager: Track PnL and funding collected\nRisk Management: Stop-loss, max DD, auto-rebalancing\nCron Integration: Scheduled rate checks\nSupported DEXes\nDEX\tMarkets\tTrading\tData Source\nDrift Protocol\t64\t✅ Full\tDirect API\nFlash Trade\t19\t🔶 DRY_RUN\tCoinGecko\nStrategy Options\nStrategy\tLeverage\tWin Rate\tAPY\tMax Drawdown\nUltra Safe\t1x\t96%\t126%\t2%\nConservative\t1.5x\t89%\t203%\t4%\nModerate\t2.5x\t85%\t411%\t9%\nQuick Start\ncd scripts && npm install\n\n# 1. Scan funding rates (no trading)\nnpm run trade:scan\n\n# 2. Check position status\nnpm run trade:status\n\n# 3. Run in DRY_RUN mode (simulated)\nnpm run trade:dry\n\n# 4. Run live trading (requires wallet)\nnpm run trade\n\n# Other commands\nnpm run scan        # Basic rate scanner\nnpm run dashboard   # Web dashboard (:3456)\nnpm run monte-carlo # Risk simulations\n\nConfiguration\n\nConfig file: ~/.secrets/funding-arb-config.json\n\n{\n  \"strategy\": \"ultra_safe\",\n  \"max_position_pct\": 50,\n  \"min_spread\": 0.5,\n  \"max_dd_pct\": 2,\n  \"auto_execute\": true,\n  \"dry_run\": true,\n  \"leverage\": 1,\n  \"check_interval_hours\": 4,\n  \"min_apy_threshold\": 100,\n  \"max_position_usd\": 100,\n  \"notification\": {\n    \"telegram\": true,\n    \"on_open\": true,\n    \"on_close\": true,\n    \"on_funding\": true\n  },\n  \"risk\": {\n    \"max_positions\": 2,\n    \"stop_loss_pct\": 2,\n    \"take_profit_pct\": null,\n    \"auto_rebalance\": true,\n    \"rebalance_threshold\": 0.3\n  }\n}\n\nEnvironment Variables\n\nCreate .env in scripts directory or ~/.secrets/.env:\n\n# Required for live trading\nSOLANA_PRIVATE_KEY=[1,2,3,...]  # Or use wallet file\nSOLANA_WALLET_PATH=/path/to/wallet.json\n\n# Optional\nSOLANA_RPC_URL=https://mainnet.helius-rpc.com/?api-key=YOUR_KEY\nDEBUG=true  # Verbose logging\n\nCron Setup\n\nRun every 4 hours:\n\n# Add to crontab -e\n0 */4 * * * ~/clawd/skills/solana-funding-arb/scripts/cron-runner.sh\n\nHow It Works\nScan: Compare funding rates on Drift vs Flash Trade\nIdentify: Find pairs where one is paying and other is receiving\nExecute:\nGo LONG on exchange with negative rate (receive funding)\nGo SHORT on exchange with positive rate (receive funding)\nCollect: Delta-neutral = collect funding from both sides\nRebalance: Close when spread reverses or DD exceeded\nExample Trade\nSOL Funding Rates:\n- Drift: -500% APY (longs receive)\n- Flash: +800% APY (shorts receive)\n- Spread: 1300% APY\n\nAction:\n→ LONG $50 SOL on Drift (receive 500% APY)\n→ SHORT $50 SOL on Flash (receive 800% APY)\n→ Net: Delta-neutral, collecting ~1300% APY in funding\n\nFiles\nscripts/\n├── src/trading/\n│   ├── auto-trader.ts      # Main trading logic\n│   ├── drift-client.ts     # Drift Protocol integration\n│   ├── flash-client.ts     # Flash Trade integration\n│   └── position-manager.ts # Position tracking\n├── cron-runner.sh          # Cron wrapper script\n└── ...\n\n~/.clawd/funding-arb/\n├── positions.json          # Current positions\n├── history.json           # Trade history\n├── trader-state.json      # Bot state\n└── logs/                  # Cron logs\n\nRisks\n\n⚠️ Smart Contract Risk: DEX bugs, hacks ⚠️ Rate Reversal: 15-18% daily probability ⚠️ Execution Slippage: 0.2-0.4% ⚠️ Liquidation: Only with leverage >1x\n\nYield Comparison\nPlatform\tAPY\tvs Ultra Safe\nUltra Safe (1x)\t126%\t—\nUS Bank (FDIC)\t4.5%\t28x less\nAave V3\t2.5%\t50x less\nMarginfi\t8.5%\t15x less\nTesting\nStart with dry_run: true (default)\nRun npm run trade:scan to verify opportunities\nRun npm run trade:dry to test execution flow\nWhen ready, set dry_run: false and max_position_usd: 10\nMonitor logs at ~/.clawd/funding-arb/logs/\nReferences\nDrift Protocol Docs\nFlash Trade\nAPI Reference"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/guohongbin-git/solana-funding-arb-cn",
    "publisherUrl": "https://clawhub.ai/guohongbin-git/solana-funding-arb-cn",
    "owner": "guohongbin-git",
    "version": "1.0.1",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/solana-funding-arb-cn",
    "downloadUrl": "https://openagent3.xyz/downloads/solana-funding-arb-cn",
    "agentUrl": "https://openagent3.xyz/skills/solana-funding-arb-cn/agent",
    "manifestUrl": "https://openagent3.xyz/skills/solana-funding-arb-cn/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/solana-funding-arb-cn/agent.md"
  }
}