Dex arb detector

From XSpoonAi/spoon-awesome-skill · View interactive version

Dex arb detector is an AI agent skill from the GitHub repository XSpoonAi/spoon-awesome-skill. Detect significant price deltas across decentralized exchanges (DEXs) for potential arbitrage opportunities. Analyzes liquidity and pricing inefficiencies.

How to use this skill

Skill file

Description

Detect significant price deltas across decentralized exchanges (DEXs) for potential arbitrage opportunities. Analyzes liquidity and pricing inefficiencies.

Inputs

{
  "token_pair": "token1/token2",
  "dexes": ["uniswap", "sushiswap"],
  "min_delta": "0.5%"
}

Outputs

{
  "ok": true,
  "data": {
    "opportunities": [],
    "best_spread": "2.3%"
  }
}

Usage

Demo Mode

python scripts/main.py --demo

Find Arbitrage

echo '{"token_pair":"ETH/USDC","dexes":["uniswap","sushiswap"]}' | python3 scripts/main.py

Examples

Example 1: Detect Arb

$ echo '{"token_pair":"ETH/USDC","dexes":["uniswap","sushiswap"],"min_delta":"0.5%"}' | python3 scripts/main.py
{
  "ok": true,
  "data": {
    "opportunities": [{"from": "uniswap", "to": "sushiswap", "spread": "1.2%"}],
    "best_spread": "1.2%"
  }
}

Error Handling

When an error occurs, the skill returns:

{
  "ok": false,
  "error": "Error description",
  "details": {
    "token_pair": "Invalid token pair"
  }
}
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.