# Detect Intraday MEV Spikes with 5-Minute Bars

**Use case:** 

Scan a DEX pool at 5-minute granularity to pinpoint intraday MEV spikes and the safest hours to trade based on hourly MEV risk.

## Input

```json
{
  "mode": "scan-pair",
  "default_evm_chain": "ethereum",
  "tokens": [],
  "max_pairs_per_token": 3,
  "pairs": [
    "0xe0554a476a092703abdb3ef35c80e0d76d32939f"
  ],
  "discover_chains": [
    "ethereum",
    "solana",
    "base"
  ],
  "discover_min_liquidity_usd": 1000000,
  "max_results": 1,
  "bar_resolution": "5",
  "enable_ai_verdict": false
}
```

## Output

```json
{
  "chain": {
    "label": "Chain",
    "format": "text"
  },
  "exchange": {
    "label": "DEX",
    "format": "text"
  },
  "token0_symbol": {
    "label": "Token0",
    "format": "text"
  },
  "token1_symbol": {
    "label": "Token1",
    "format": "text"
  },
  "pair_address": {
    "label": "Pair address",
    "format": "text"
  },
  "volume_24h_usd": {
    "label": "24h Vol (USD)",
    "format": "number"
  },
  "liquidity_usd": {
    "label": "Liquidity (USD)",
    "format": "number"
  },
  "transactions_24h": {
    "label": "24h Tx",
    "format": "number"
  },
  "mev_risk_level": {
    "label": "MEV risk",
    "format": "text"
  },
  "fee_regime_24h": {
    "label": "Fee regime",
    "format": "text"
  },
  "mev_to_total_fees_ratio_24h": {
    "label": "MEV/total fees",
    "format": "number"
  },
  "sandwich_rate_24h": {
    "label": "Sandwich rate",
    "format": "number"
  },
  "estimated_sandwich_attacks_24h": {
    "label": "Est. sandwiches/24h",
    "format": "number"
  },
  "ai_verdict": {
    "label": "AI verdict",
    "format": "text"
  },
  "fetched_at": {
    "label": "Fetched at",
    "format": "date"
  }
}
```

## About this Actor

This example demonstrates how to use [MEV Risk Scanner - DEX Sandwich + Fee Intel](https://apify.com/constructive_calm/mev-pair-scanner) with a specific input configuration. Visit the [Actor detail page](https://apify.com/constructive_calm/mev-pair-scanner) to learn more, explore other use cases, and run it yourself.