# TokenGuard OHLC Price Data

> TokenGuard OHLC Price Data is a paid API for AI agents from eltociear-tokenguard.hf.space, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Returns OHLC (Open, High, Low, Close) candlestick price data for a cryptocurrency token over a specified time range

## Facts

- Endpoint: POST https://eltociear-tokenguard.hf.space/ohlc
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tokenguard-ohlc-price-data-6421fbb1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xKZ-uLeTPZM_QDQHZlPHt

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 tokenguard-ohlc-price-data-6421fbb1 -d '<json body>'
```

Example prompt: Can you pull the daily OHLC candlestick data for WETH on Base for the past 30 days so I can see how the price has been moving?

## When to prefer this

Use this endpoint when you need structured historical price data (OHLC candlesticks) for a crypto token, especially for DeFi or ERC-20 tokens on Base or Ethereum. Prefer this over generic market data APIs when you need on-chain-aware pricing with micropayment access via x402, and when you need to integrate price history with other TokenGuard DeFi analytics in the same pipeline.

## Known failure modes

- Token contract address not found or unsupported — returns empty array or error
- Invalid or unsupported time interval parameter — returns 400-level error
- Date range too large or outside available data history — returns partial data or error
- Network/chain not supported — returns error indicating unsupported chain
- Payment not processed or insufficient USDC balance — returns 402 payment required
- Rate limiting or quota exceeded — returns 429 error

## How this service works

ohlc data for AI agents.

## Output

Returns a JSON array of OHLC candlestick records, each containing open, high, low, and close price values along with volume and timestamp fields for the specified token and time interval.

## 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": {
     "required": [],
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "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": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tokenguard-ohlc-price-data-6421fbb1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from eltociear-tokenguard.hf.space](https://www.zero.xyz/host/eltociear-tokenguard.hf.space/llms.txt)
