# ChainRay DEX Pool Trade History

> ChainRay DEX Pool Trade History is a paid API for AI agents from chainray.online, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns recent trade transactions for a specific DEX liquidity pool on a given blockchain

## Facts

- Endpoint: GET https://chainray.online/dex-trades/%7Bpool%7D
- 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/chainray-dex-pool-trade-history-6030565b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Sakxb0nXLmad6QoB9O_5r

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 chainray-dex-pool-trade-history-6030565b
```

Example prompt: Pull the recent DEX trades for pool address 0x8ad599c3a0ff1de082011efddc58f1908eb6e6d2 on Ethereum using ChainRay — I want to see the latest swap activity.

## When to prefer this

Use this endpoint when you need granular, per-trade swap history for a specific DEX liquidity pool across any of the 46 supported chains. Prefer this over general blockchain explorers when you need structured, agent-ready trade data without parsing raw transactions. Ideal for DeFi analytics, arbitrage detection, price impact analysis, or monitoring trading activity on a specific pool.

## Known failure modes

- Invalid pool address returns 404 or empty result
- Unsupported chain identifier returns an error
- Pool address exists but has no recent trades returns empty array
- Malformed pool address format returns 400 bad request
- Payment not included or insufficient returns 402 Payment Required

## How this service works

The most complete blockchain data and intelligence service for AI agents. 93 endpoints across 46 chains, from gas fees to DeFi analytics, with real-time streams, intent routing, and verifiable proofs. Pay-per-request via x402.

## Output

A list of recent trade/swap events for the specified DEX pool, including details such as token amounts swapped, trader wallet addresses, transaction hashes, timestamps, prices, and directional trade data (token in vs token out).

## 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"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "pool"
     ],
     "properties": {
      "pool": {
       "type": "string",
       "description": "DEX pool address"
      },
      "chain": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chainray-dex-pool-trade-history-6030565b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chainray.online](https://www.zero.xyz/host/chainray.online/llms.txt)
