# Coinbase Exchange Recent Trades Feed

> Coinbase Exchange Recent Trades Feed is a paid API for AI agents from x402-gateway-production-1f21.up.railway.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-12).

Fetches the most recent trades for a given Coinbase Exchange trading pair (e.g. BTC-USD), returning trade history with price, size, and side data.

## Facts

- Endpoint: POST https://x402-gateway-production-1f21.up.railway.app/crypto/trades?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coinbase-exchange-recent-trades-feed-eed36886
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6VY555xcMVKHZLcS3O4GR

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 coinbase-exchange-recent-trades-feed-eed36886 -d '<json body>'
```

Example prompt: Pull the last 100 recent trades for BTC-USD from Coinbase Exchange so I can see the latest executed prices and sizes.

## When to prefer this

Choose this endpoint when you need real-time, recently executed trade data (tick data) for specific Coinbase Exchange pairs. It is ideal for price discovery, VWAP calculations, momentum signals, or any use case requiring actual matched trade history rather than order book snapshots or OHLCV candles. Prefer this over order book endpoints when you want confirmed executions rather than pending orders.

## Known failure modes

- Invalid product_id format (must match pattern like BTC-USD) returns validation error
- Unsupported or unlisted trading pair returns not found error
- Limit outside 1-100 range returns schema validation error
- Payment not included or insufficient triggers x402 payment required response
- Coinbase Exchange API downtime causes upstream errors

## How this service works

Machine-payable x402 utilities for hashing, Base64, UUID generation, unit and timezone conversion, realtime crypto market data, webpage/document extraction, URL-to-Markdown, metadata, RAG ingestion and deterministic website change detection.

## Output

Returns a list of recent trades for the specified Coinbase Exchange trading pair, each trade containing fields such as trade ID, price, size, side (buy/sell), and timestamp. Up to 100 trades can be retrieved per call (default 50).

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "product_id"
     ],
     "properties": {
      "limit": {
       "type": "integer",
       "maximum": 100,
       "minimum": 1,
       "description": "Maximum trades to return; default 50."
      },
      "product_id": {
       "type": "string",
       "pattern": "^[A-Za-z0-9]{2,15}-[A-Za-z0-9]{2,15}$",
       "description": "Coinbase Exchange product such as BTC-USD, ETH-USD, SOL-USD or ETH-USDC."
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "status": "ready"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coinbase-exchange-recent-trades-feed-eed36886/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-gateway-production-1f21.up.railway.app](https://www.zero.xyz/host/x402-gateway-production-1f21.up.railway.app/llms.txt)
