# DeFi Shield Cross-DEX Arbitrage Opportunity Detector

> DeFi Shield Cross-DEX Arbitrage Opportunity Detector is a paid API for AI agents from defi-shield-hazel.vercel.app, paid per call via x402, $0.75/call, status unknown (last checked 2026-09-15).

Detects cross-DEX arbitrage opportunities by comparing token prices across trading pairs on decentralized exchanges

## Facts

- Endpoint: POST https://defi-shield-hazel.vercel.app/api/mev/arb-detector
- Price: $0.75/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-shield-hazel-vercel-app-823d0526
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iFI4vH02dWvABJZSkhjH1

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability defi-shield-hazel-vercel-app-823d0526 -d '<json body>'
```

Example prompt: Check for cross-DEX arbitrage opportunities on the WETH/USDC pair right now — compare prices across Uniswap, Sushiswap, and Curve and tell me if there's a profitable spread.

## When to prefer this

Use this endpoint when you need to identify real-time cross-DEX price discrepancies for specific token pairs, particularly for MEV strategies, arbitrage bots, or DeFi portfolio optimization. Prefer this over manual price lookups when comparing more than two DEXes simultaneously.

## Known failure modes

- Token pair not found on specified DEXes — returns empty opportunities or 404
- DEX price feed unavailable or stale — returns error or degraded data
- Invalid token address provided — returns validation error
- No arbitrage opportunity found — returns empty result set
- Rate limiting or insufficient payment — returns 402 or 429 error

## Output

Returns detected arbitrage opportunities including token pair price comparisons across multiple DEXes, price differentials, estimated profit margins, and the specific DEX pairs where the discrepancy exists.

## Example request

```json
{
 "input": {
  "body": {
   "chain": "base",
   "token_address": "0xd9aAEc86B65D86f6A7B630E2c953e5Ff26FE441D"
  },
  "type": "http",
  "method": "POST",
  "bodyType": "json"
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "bodyType",
    "body",
    "method"
   ],
   "properties": {
    "body": {
     "properties": {
      "chain": {
       "type": "string",
       "description": "Chain (default: base)"
      },
      "token_address": {
       "type": "string",
       "description": "Token to scan for arbitrage across DEXs"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-shield-hazel-vercel-app-823d0526/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from defi-shield-hazel.vercel.app](https://www.zero.xyz/host/defi-shield-hazel.vercel.app/llms.txt)
