# Greeneris Pyth Oracle Price Feed

> Greeneris Pyth Oracle Price Feed is a paid API for AI agents from data.greeneris.io, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Fetches real-time cryptocurrency prices from the Pyth Network oracle for up to 8 tokens in a single call

## Facts

- Endpoint: GET https://data.greeneris.io/v1/oracle/pyth
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/greeneris-pyth-oracle-price-feed-5ad90c9e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_r4Y5PzAm-KL6FRL8PDPJH

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 greeneris-pyth-oracle-price-feed-5ad90c9e
```

Example prompt: What are the current prices for BTC and ETH right now? I need the spot price and EMA from the Pyth oracle.

## When to prefer this

Choose this endpoint when you need sub-second, high-confidence crypto price data sourced from the permissionless Pyth Network oracle, especially when you want EMA prices alongside spot prices and confidence intervals. Prefer over exchange-specific APIs when oracle-grade decentralized price data is required, or when you need to price multiple tokens (up to 8) in a single call at a very low per-call cost with no upfront account setup.

## Known failure modes

- HTTP 402 returned when no x402 payment is attached — machine-readable quote provided for payment
- Invalid or unsupported ticker symbol returns an error or omits the symbol from results
- More than 8 symbols in a single request may be rejected
- Network or oracle downtime may cause stale or missing prices
- Malformed comma-separated symbols list causes a 400 bad request

## How this service works

Real-time oracle prices from Pyth Network (Hermes API): aggregate price, confidence interval (uncertainty band), EMA price and publish_time per asset, all vs USD. Query: ?symbols=btc,eth,sol (1-8 of: btc, eth, sol, bnb, xrp, ada, avax, doge, link, dot, usdc, usdt). Cross-check against CEX spot to detect oracle/spot divergence. 30s cache.

## Output

Returns a JSON object with the quote currency pair (USD), and for each requested ticker: spot price, EMA price, confidence interval, and a Unix publish timestamp — all sourced from the Pyth Network Hermes oracle with sub-second update frequency.

## 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"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "symbols": {
       "type": "string",
       "default": "btc,eth",
       "description": "Comma-separated tickers (1-8), e.g. btc,eth,sol"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "pair": "USD",
  "prices": {
   "btc": {
    "conf": 27.24,
    "price": 63045.25,
    "ema_price": 62911.08,
    "publish_time": 1783931590
   },
   "eth": {
    "conf": 1.61,
    "price": 3112.4,
    "ema_price": 3108.9,
    "publish_time": 1783931590
   }
  },
  "source": "Pyth Network via Hermes (permissionless oracle, sub-second updates)"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/greeneris-pyth-oracle-price-feed-5ad90c9e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from data.greeneris.io](https://www.zero.xyz/host/data.greeneris.io/llms.txt)
