# TokenGuard Token Price Chart

> TokenGuard Token Price Chart 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-15).

Fetches historical price chart data for a cryptocurrency token over a specified number of days

## Facts

- Endpoint: POST https://eltociear-tokenguard.hf.space/token_chart
- 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/tokenguard-token-price-chart-74e9c802
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8hMgQFfB_EXqrQnbOhAtP

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-token-price-chart-74e9c802 -d '<json body>'
```

Example prompt: Can you pull the historical price chart for bitcoin over the last 7 days — I want to see the price points and what percentage it's changed?

## When to prefer this

Choose this endpoint when you need time-series historical price data for a specific cryptocurrency token, especially when you want both raw price arrays and a summary (current price + change percentage) in a single call. Ideal for charting, trend analysis, or DeFi research use cases within an AI agent pipeline that supports x402 micropayments.

## Known failure modes

- Unknown token_id returns an error or empty dataset
- Invalid or out-of-range 'days' value may cause a bad request response
- Network/service downtime on Hugging Face Spaces hosting
- Payment failure via x402 micropayment ($0.005 USDC) blocks the request
- Rate limiting if too many calls are made in quick succession

## How this service works

Historical price and volume chart for any crypto token (up to 365 days) via CoinGecko — candlestick-ready OHLCV data, no API key.

## Output

Returns an array of [timestamp, price] pairs covering the requested period, the token ID, the number of data points, the current price in USD, and the percentage price change over the period.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "days": {
   "type": "integer",
   "default": 7
  },
  "token_id": {
   "type": "string",
   "default": "bitcoin"
  },
  "vs_currency": {
   "type": "string",
   "default": "usd"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "days": 7,
  "prices": [
   [
    1750000000,
    60000
   ]
  ],
  "token_id": "bitcoin",
  "data_points": 8,
  "current_price": 60153.08,
  "price_change_pct": 2.43
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tokenguard-token-price-chart-74e9c802/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)
