# DEX Pool Recent Trades (GeckoTerminal via Opportunity API)

> DEX Pool Recent Trades (GeckoTerminal via Opportunity API) is a paid API for AI agents from opportunity-api-production.up.railway.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns recent swap transactions for a DEX pool including buy/sell direction, USD size, wallet address, transaction hash, timestamp, and aggregated buy/sell volume split and ratio.

## Facts

- Endpoint: GET https://opportunity-api-production.up.railway.app/api/pool-trades
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dex-pool-recent-trades-geckoterminal-via-opportunity-api-97834246
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qD9_pk56_ozQq2Cjp7zPO

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 dex-pool-recent-trades-geckoterminal-via-opportunity-api-97834246
```

Example prompt: Pull the recent trades for DEX pool 0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640 on the Ethereum network from GeckoTerminal, and only show me swaps above $500 USD so I can see the buy/sell flow.

## When to prefer this

Use this endpoint when you need real-time trade-level data for a specific DEX pool, including individual swap details (wallet, tx hash, USD size) and aggregated buy/sell pressure metrics. Ideal for sniping agents, order flow analysis, whale watching, and momentum detection. Prefer over OHLCV candle endpoints when you need raw transaction granularity rather than aggregated price data.

## Known failure modes

- Invalid or unrecognized pool address returns empty results or error
- Unsupported network name causes a 400 or empty response
- Pool with no recent trades returns an empty trade list
- min_usd set too high filters out all trades, returning empty list
- GeckoTerminal upstream outage causes 502 or timeout
- Missing required parameters (network or pool) returns a 400 error

## How this service works

Recent swaps for a DEX pool (GeckoTerminal): buy/sell, USD size, wallet, tx, timestamp, plus buy/sell volume split and ratio. For sniping/flow agents. Params: network, pool (address), min_usd (optional).

## Output

A list of recent swap transactions for the specified pool, each including buy/sell direction, USD size, wallet address, transaction hash, and timestamp, plus aggregated buy volume, sell volume, and buy/sell ratio across the returned trades.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "network",
      "pool"
     ],
     "properties": {
      "pool": {
       "type": "string",
       "description": "pool address (from search-pools)"
      },
      "min_usd": {
       "type": "string",
       "description": "filter trades >= this USD size"
      },
      "network": {
       "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/dex-pool-recent-trades-geckoterminal-via-opportunity-api-97834246/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from opportunity-api-production.up.railway.app](https://www.zero.xyz/host/opportunity-api-production.up.railway.app/llms.txt)
