# AsterPay OHLCV Candlestick Data

> AsterPay OHLCV Candlestick Data is a paid API for AI agents from x402.asterpay.io, paid per call via x402, $0.015/call, status unknown (last checked 2026-10-12).

Returns OHLCV (open, high, low, close, volume) candlestick data for a specified cryptocurrency symbol, interval, and number of candles

## Facts

- Endpoint: GET https://x402.asterpay.io/v1/market/ohlcv/bitcoin?utm_source=zero.xyz
- Price: $0.015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/asterpay-ohlcv-candlestick-data-c2b0d16c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zqCwnQvy1wqdANmU9SNcR

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 asterpay-ohlcv-candlestick-data-c2b0d16c
```

Example prompt: Pull me the last 50 one-hour candlestick bars for Bitcoin — I need the open, high, low, close, and volume so I can run a technical analysis.

## When to prefer this

Use this endpoint when you need structured OHLCV candlestick data for a specific cryptocurrency for charting, technical analysis, or trading algorithms. It is ideal for agents building price charts, computing indicators like RSI or MACD, or backtesting strategies, especially when you need a flexible symbol/interval/limit combination and are comfortable with micropayment-per-call pricing via x402.

## Known failure modes

- Missing required query parameters (symbol, interval, limit) return a 400 error
- Unsupported symbol or interval values may return an error or empty candle array
- Payment failure via x402 protocol results in 402 Payment Required response
- Rate limiting or quota exhaustion may block requests
- Network timeout if upstream market data provider is unavailable

## How this service works

Get OHLCV candlestick data for charting and analysis

## Output

A JSON object containing the queried symbol name, the requested interval string, and an array of candle objects each with timestamp, open, high, low, close, and volume fields for that period.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "symbol",
      "interval",
      "limit"
     ],
     "properties": {
      "limit": {
       "type": "string"
      },
      "symbol": {
       "type": "string"
      },
      "interval": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "schema": {
  "type": "object",
  "properties": {
   "symbol": {
    "type": "string"
   },
   "candles": {
    "type": "array",
    "items": {
     "type": "object",
     "properties": {
      "low": {
       "type": "number"
      },
      "high": {
       "type": "number"
      },
      "open": {
       "type": "number"
      },
      "close": {
       "type": "number"
      },
      "volume": {
       "type": "number"
      },
      "timestamp": {
       "type": "string"
      }
     }
    }
   },
   "interval": {
    "type": "string"
   }
  }
 },
 "example": {
  "symbol": "ethereum",
  "candles": [
   {
    "low": 3420,
    "high": 3480,
    "open": 3450,
    "close": 3465,
    "volume": 125000000,
    "timestamp": "2026-02-01T11:00:00Z"
   }
  ],
  "interval": "1h"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/asterpay-ohlcv-candlestick-data-c2b0d16c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.asterpay.io](https://www.zero.xyz/host/x402.asterpay.io/llms.txt)
