# ChainRay DEX Trades

> ChainRay DEX Trades 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).

Fetches recent trade history and swap events for a specific DEX liquidity pool on a given blockchain

## Facts

- Endpoint: GET https://chainray.online/dex-trades/:var1
- 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-trades-cbc89319
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GtCV5S0CkFBwsXGsS_1uL

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-trades-cbc89319
```

Example prompt: Pull the recent DEX trades for pool address 0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640 on Ethereum so I can see the latest swap activity.

## When to prefer this

Use this endpoint when you need granular, per-trade swap data for a specific DEX liquidity pool across any of the 46+ supported chains. Prefer ChainRay DEX Trades over generic block explorers when you need structured, agent-consumable trade data without parsing raw transaction logs, and when you want multi-chain coverage from a single API with per-call pricing.

## Known failure modes

- Invalid or non-existent pool address returns empty results or error
- Unsupported chain identifier returns an error
- Pool address on wrong chain returns no data
- Rate limiting or payment failure if x402 payment not processed
- Malformed pool address format causes 400-level error

## How this service works

ChainRay /dex-trades

## Output

Returns a list of recent swap/trade events for the specified DEX pool, including swap direction, token amounts in and out, trader wallet addresses, transaction hashes, block numbers, and timestamps — enabling analysis of trading activity, volume, and market behavior for that pool.

## 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-trades-cbc89319/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)
