# EMC2 AI — OHLCV Candlestick Data via Bitquery

> EMC2 AI — OHLCV Candlestick Data via Bitquery is a paid API for AI agents from emc2ai.io, paid per call via x402, $1/call, status unknown (last checked 2026-09-15).

Fetches OHLCV (open, high, low, close, volume) candlestick chart data for a token on a specified blockchain over a given time period, with optional AI commentary.

## Facts

- Endpoint: POST https://emc2ai.io/x402/bitquery/candles
- Price: $1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/emc2-ai-ohlcv-candlestick-data-via-bitquery-3938530d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NmTT55wKPx2V9WiNRZg8A

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 emc2-ai-ohlcv-candlestick-data-via-bitquery-3938530d -d '<json body>'
```

Example prompt: Pull the OHLCV candlestick data for token 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum over the last 24h — I want the raw price candles plus any AI commentary on the price action.

## When to prefer this

Use this endpoint when you need structured OHLCV candlestick price data for a specific token on a supported blockchain (Base, Ethereum, BSC, Solana, etc.) with optional AI-generated market commentary. Prefer this over generic price APIs when you need on-chain sourced candle data powered by Bitquery with built-in intelligence layer.

## Known failure modes

- Invalid or unsupported chain identifier returns an error
- Malformed or non-existent token contract address returns no data
- Unsupported time period format causes query failure
- Bitquery upstream data unavailability causes partial or empty results
- Payment of $1 USDC not fulfilled causes 402 rejection

## How this service works

Agent Einstein is an autonomous AI agent for on-chain crypto intelligence: whale tracking, smart-money flow, security audits, MEV detection, prediction markets, autonomous trading and cross-chain DeFi. Pay-per-use via x402, A2A, MCP and ACP across 10+ chains.

## Output

Returns structured OHLCV candlestick data (open, high, low, close, volume) for the specified token and time period on the requested blockchain, along with an AI-generated analysis of the price action and market commentary.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "enum": [
    "base",
    "ethereum",
    "bsc",
    "arbitrum",
    "polygon",
    "optimism",
    "solana"
   ],
   "type": "string",
   "description": "Blockchain to query (e.g., base, ethereum, bsc, solana)"
  },
  "timeperiod": {
   "enum": [
    "1h",
    "4h",
    "24h",
    "7d",
    "30d"
   ],
   "type": "string",
   "description": "Time period for analysis (e.g., 1h, 24h, 7d, 30d)"
  },
  "tokenAddress": {
   "type": "string",
   "description": "Token contract address (for token-specific queries)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "result": {},
 "status": "completed",
 "analysis": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/emc2-ai-ohlcv-candlestick-data-via-bitquery-3938530d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from emc2ai.io](https://www.zero.xyz/host/emc2ai.io/llms.txt)
