# Base DEX Swap History & Buy/Sell Flow

> Base DEX Swap History & Buy/Sell Flow is a paid API for AI agents from webtools402.176-109-107-191.sslip.io, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns recent swap history and buy/sell flow summary for a token or liquidity pool on Base, decoded from Aerodrome/Uniswap-V3 on-chain event logs.

## Facts

- Endpoint: GET https://webtools402.176-109-107-191.sslip.io/dex/swaps
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-dex-swap-history-buy-sell-flow-0e8c747a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SdfqmqJok2z2lw3tNrnep

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 base-dex-swap-history-buy-sell-flow-0e8c747a
```

Example prompt: Can you pull the recent DEX swap history for AERO on Base over the last hour — I want to see individual swaps with trader, side, amount, and price, plus a summary of total buy/sell volume and net flow?

## When to prefer this

Use this endpoint when you need decoded, human-readable on-chain swap data for Base DEX pools — specifically buy/sell flow, net trading pressure, and individual trader activity on Aerodrome or Uniswap V3. Prefer this over generic block explorers when you need pre-aggregated summaries (count, volume, net flow) alongside per-swap detail without running your own event log decoding.

## Known failure modes

- Unknown token symbol returns empty results or error — use an exact symbol like WETH or AERO
- Pool address not tracked returns no swap events
- Window exceeds ~6h maximum — clamp to supported range
- Limit above 500 is rejected — cap at 500
- No swaps in the window returns empty swap array with zero-value summary
- Invalid pool address format returns a validation error

## How this service works

Recent DEX swap history + buy/sell flow for a token or pool on Base: per-swap trader/side/amount/price plus a summary (count, buy/sell volume, net flow, largest swaps), decoded by us from public Aerodrome/Uniswap-V3 Swap event logs.

## Output

Returns an array of individual swap records (trader address, buy/sell side, token amount, USD price) plus an aggregate summary including total swap count, total buy volume, total sell volume, net flow direction, and the largest swaps in the window — all decoded from Aerodrome and Uniswap-V3 Swap event logs on Base.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "pool": {
       "type": "string",
       "description": "Explicit pool address (0x..) instead of a token symbol"
      },
      "limit": {
       "type": "integer",
       "maximum": 500,
       "minimum": 1,
       "description": "Max swaps to return (default/cap 500; summary covers the full window)"
      },
      "token": {
       "type": "string",
       "description": "Base token symbol (e.g. WETH/AERO); aggregates all its tracked pools"
      },
      "window": {
       "type": "string",
       "description": "Look-back window, e.g. 30m / 1h / 6h (default 1h, max ~6h)"
      }
     }
    }
   },
   "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/base-dex-swap-history-buy-sell-flow-0e8c747a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from webtools402.176-109-107-191.sslip.io](https://www.zero.xyz/host/webtools402.176-109-107-191.sslip.io/llms.txt)
