# Agent Data Bench – DEX Pool OHLCV Candles

> Agent Data Bench – DEX Pool OHLCV Candles is a paid API for AI agents from x402.deepsense.stream, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-28).

Returns OHLCV (open/high/low/close/volume) candlestick data for any DEX pool on Solana, Ethereum, or Base across intervals from 1 second to 1 day.

## Facts

- Endpoint: GET https://x402.deepsense.stream/api/v1/market/ohlcv?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-bench-dex-pool-ohlcv-candles-61facb69
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7m7vmzrD82Ikw4dx-_85o

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-data-bench-dex-pool-ohlcv-candles-61facb69
```

Example prompt: Can you pull the last 200 hourly OHLCV candles for the Solana pool at address 7XawhbbxtsRcQA8KTkHT9f9nc6d69UwqCDh6U5EEbEmX so I can calculate RSI?

## When to prefer this

Choose this endpoint when you need raw OHLCV candlestick data for a specific DEX pool on Solana, Ethereum, or Base without operating your own indexer or decoding swap events. It is ideal for backtesting, computing technical indicators (RSI, MACD, Bollinger Bands), or rendering price charts. It supports fine-grained intervals down to 1 second and returns data in a clean numeric format ready for quantitative use. Prefer it over general market data APIs when you need DEX-specific pool-level granularity rather than centralized exchange data.

## Known failure modes

- Invalid or unrecognized pool address returns an error or empty result
- Unsupported chain identifier returns a validation error
- Requested interval not in the supported enum returns a 400-level error
- End time in the future or far past may return fewer candles than requested
- Outlier prints included when outlier flag is false by default, unexpected price spikes may appear
- Payment failure (x402 protocol) blocks the response entirely
- Rate limiting or network timeouts on the provider side

## How this service works

OHLCV candles for any DEX pool, from 1 second to 1 day buckets, newest N returned oldest-first with numeric open/high/low/close/volume. Drop-in for backtests, indicator calculations and chart rendering without running an indexer or decoding swap events.

## Output

An ordered array of OHLCV candle objects (oldest first), each containing numeric open, high, low, close, and volume fields plus a timestamp, for the requested pool, chain, interval, and time window. Up to 500 candles returned per call.

## 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",
     "required": [
      "chain",
      "pool"
     ],
     "properties": {
      "pool": {
       "type": "string",
       "description": "Pool / pair address"
      },
      "chain": {
       "enum": [
        "sol",
        "eth",
        "base"
       ],
       "type": "string",
       "description": "Chain id: sol (Solana), eth (Ethereum), base (Base)"
      },
      "limit": {
       "type": "integer",
       "default": 100,
       "maximum": 500,
       "minimum": 1
      },
      "endTime": {
       "type": "integer",
       "description": "Unix seconds; defaults to now"
      },
      "outlier": {
       "type": "boolean",
       "default": false,
       "description": "Include outlier prints"
      },
      "interval": {
       "enum": [
        "1s",
        "15s",
        "30s",
        "1m",
        "5m",
        "15m",
        "30m",
        "1h",
        "4h",
        "6h",
        "12h",
        "1d"
       ],
       "type": "string",
       "default": "1h"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-bench-dex-pool-ohlcv-candles-61facb69/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.deepsense.stream](https://www.zero.xyz/host/x402.deepsense.stream/llms.txt)
