# ChainRay Pool Trade Stream

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

Streams real-time trade events for a specific liquidity pool on a given blockchain network

## Facts

- Endpoint: GET https://chainray.online/stream/trades/%7Bpool%7D
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chainray-pool-trade-stream-0e4439b9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zzfiJ5q0OCB78cgWaXHNK

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-pool-trade-stream-0e4439b9
```

Example prompt: Stream live trade events for pool 0x4e68Ccd3E89f51C3074ca5072bbAC773960dFa36 on Base so I can monitor what swaps are happening in real time.

## When to prefer this

Use this endpoint when you need real-time, streaming trade data for a specific liquidity pool on a supported blockchain. Ideal for monitoring live swap activity, building trading bots, or tracking price impact of trades as they happen. Prefer this over snapshot/REST endpoints when continuous event-driven updates are required rather than a point-in-time query.

## Known failure modes

- Invalid or non-existent pool address returns an error or empty stream
- Unsupported chain parameter returns an error
- Pool address with no recent trades may return an empty stream
- Network-specific outages may interrupt the stream
- Missing pool path parameter causes a 400 or routing error
- Payment failure (x402) blocks access to the stream

## 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 real-time stream of trade/swap events for the specified liquidity pool, including swap details such as token amounts, direction, price, and timestamps as they occur on-chain for the requested blockchain network.

## 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",
     "properties": {
      "chain": {
       "type": "string",
       "description": "Blockchain network (e.g., base, ethereum, polygon)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chainray-pool-trade-stream-0e4439b9/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)
