# TokenGuard Pyth Price Feed Endpoint

> TokenGuard Pyth Price Feed Endpoint 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).

Fetches real-time cryptocurrency price data from the Pyth Network oracle via the TokenGuard DeFi data API

## Facts

- Endpoint: POST https://eltociear-tokenguard.hf.space/pyth
- 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-pyth-price-feed-endpoint-e7a3f27f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oBq3C6vRI-MVWT5pDxfpJ

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-pyth-price-feed-endpoint-e7a3f27f -d '<json body>'
```

Example prompt: What is the current Pyth oracle price for ETH/USD, including the confidence interval and when it was last published?

## When to prefer this

Choose this endpoint when you need verified on-chain oracle price data sourced specifically from the Pyth Network, particularly for DeFi applications requiring confidence intervals and publish timestamps alongside the price. Prefer this over generic market data APIs when oracle-grade, manipulation-resistant price feeds with confidence scores are required for smart contract inputs or DeFi strategy execution.

## Known failure modes

- Invalid or unsupported price feed ID returns an error or empty result
- Network latency to Pyth Network may cause stale price data
- Micropayment failure via x402 protocol prevents access to the endpoint
- Unknown token symbol returns no matching feed
- Rate limiting or service unavailability on HuggingFace Spaces hosting

## How this service works

pyth data for AI agents.

## Output

Returns a JSON object containing the real-time price from the Pyth Network oracle for the requested asset, typically including the current price value, confidence interval (price uncertainty range), the price exponent, and the publish timestamp indicating data freshness.

## 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-pyth-price-feed-endpoint-e7a3f27f/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)
