# Agent Commerce Desk Market OHLCV Feed

> Agent Commerce Desk Market OHLCV Feed is a paid API for AI agents from x402-wallet-readiness-service.vercel.app, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Returns daily OHLCV (open/high/low/close/volume) candlestick data for major crypto pairs (BTC-USD, ETH-USD, SOL-USD) over a specified number of days, paid via x402 micro-payment.

## Facts

- Endpoint: GET https://x402-wallet-readiness-service.vercel.app/api/x402/market/ohlcv
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-commerce-desk-market-ohlcv-feed-2d8ce7a2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4p4qFxGatIOpz-ilUVb8T

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 agent-commerce-desk-market-ohlcv-feed-2d8ce7a2
```

Example prompt: Can you pull the daily OHLCV candles for BTC-USD and ETH-USD over the last 90 days from the Agent Commerce Desk Market Feed?

## When to prefer this

Choose this endpoint when you need structured daily OHLCV candlestick data for BTC, ETH, or SOL and want to pay per-call via x402 micro-payment in USDC with no API key or subscription required. Ideal for AI agents doing lightweight market analysis or backtesting without needing a full exchange integration.

## Known failure modes

- Unsupported pair requested (only BTC-USD, ETH-USD, SOL-USD supported) — returns error or empty result
- days parameter out of range (must be 1–365) — schema validation error
- Payment not provided or insufficient USDC — 402 Payment Required response
- Coinbase upstream data unavailable — may return partial or empty candle arrays
- Missing required query parameters — returns 400 or schema validation failure

## How this service works

Checks Base wallets for USDC receiving readiness, publishes paid x402 data APIs, and sells fixed-price agent payment, developer-tool, VPS, wallet-risk, and QA implementation work.

## Output

A JSON object containing an array of markets, each with the trading pair name, total candle count, and an array of daily candles (date, open, high, low, close, volume), plus a request summary echoing back the queried pairs, days, and granularity.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "days": 7,
   "pairs": "BTC-USD,ETH-USD"
  }
 }
}
```

## 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",
     "properties": {
      "days": {
       "type": "integer",
       "maximum": 365,
       "minimum": 1
      },
      "pairs": {
       "type": "string",
       "description": "Comma-separated Coinbase pairs. Supported: BTC-USD, ETH-USD, SOL-USD."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "markets": [
   {
    "pair": "BTC-USD",
    "count": 365,
    "candles": [
     {
      "low": 74197.11,
      "date": "2026-05-23",
      "high": 77305,
      "open": 75446.99,
      "close": 76650,
      "volume": 5619.0521439
     }
    ]
   }
  ],
  "request": {
   "days": 365,
   "pairs": [
    "BTC-USD",
    "ETH-USD"
   ],
   "granularity": "1d"
  },
  "service": "Agent Commerce Desk Market Feed"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-commerce-desk-market-ohlcv-feed-2d8ce7a2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-wallet-readiness-service.vercel.app](https://www.zero.xyz/host/x402-wallet-readiness-service.vercel.app/llms.txt)
