# Pyth Network Oracle Price Feed

> Pyth Network Oracle Price Feed is a paid API for AI agents from api.chainmarket-api.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-24).

Fetches real-time and EMA price data for one or more cryptocurrency symbols from Pyth Network oracles on Solana mainnet

## Facts

- Endpoint: GET https://api.chainmarket-api.workers.dev/api/crypto/pyth-network-oracles?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pyth-network-oracle-price-feed-61684c72
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0yM2LmekUDxssoVEJ7oAF

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 pyth-network-oracle-price-feed-61684c72
```

Example prompt: What are the current Pyth Network oracle prices for BTCUSD and ETHUSD, including confidence intervals and EMA prices?

## When to prefer this

Choose this endpoint when you need authoritative on-chain oracle price data sourced directly from Pyth Network validators on Solana, including confidence intervals and EMA prices — ideal for DeFi calculations, risk management, or any application requiring verifiable, decentralized price feeds rather than centralized exchange prices. Prefer over CEX APIs when you need trust-minimized, manipulation-resistant price data with statistical confidence metadata.

## Known failure modes

- Invalid or unsupported symbol returns empty prices array or error
- Requesting more than 20 symbols at once may be rejected
- Stale oracle data if Pyth network has latency (age in seconds will be high)
- Payment failure results in 402 response and no charge
- Network timeout on Solana RPC endpoint

## How this service works

Pyth Network oracle prices with confidence bands, read on-chain from Pyth's Solana push feeds: price, confidence interval (absolute and %), EMA price and EMA confidence, publish time and age in seconds, feed id and account, for up to 20 symbols (BTCUSD, ETHUSD, SOLUSD, gold XAUUSD, stablecoins, LST rates; ~65 feeds). Call with list=true for every available symbol.

## Output

Returns a JSON object containing the count of symbols queried, an array of price records (each with current price, EMA price, confidence value, confidence percentage, EMA confidence, feed ID, Solana account address, asset type, age in seconds, and publish timestamp), the Solana RPC source URL, and a checkedAt timestamp.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "list": {
       "type": "string",
       "description": "true to list the available symbols instead"
      },
      "symbols": {
       "type": "string",
       "description": "Comma-separated Pyth symbols, e.g. BTCUSD,ETHUSD (1 to 20)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 3,
  "prices": [
   {
    "price": 81520.97369762001,
    "feedId": "0xe62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43",
    "symbol": "BTCUSD",
    "emaPrice": 81652.90095,
    "assetType": "Crypto",
    "ageSeconds": 7,
    "confidence": 77.92630238,
    "publishTime": "2026-10-23T09:35:53.000Z",
    "confidencePct": 0.0956,
    "emaConfidence": 73.25261002,
    "solanaAccount": "4cSM2e6rvbGQUFiJbqytoVMi5GgghSMr8LwVrT9VPSPo"
   },
   {
    "price": 2393.33134285,
    "feedId": "0xff61491a931112ddf1bd8147cd1b641375f79f5825126d665480874634fd0ace",
    "symbol": "ETHUSD",
    "emaPrice": 2401.72906,
    "assetType": "Crypto",
    "ageSeconds": 18,
    "confidence": 2.93365716,
    "publishTime": "2026-10-23T09:35:42.000Z",
    "confidencePct": 0.1226,
    "emaConfidence": 2.50460718,
    "solanaAccount": "42amVS4KgzR9rA28tkVYqVXjq9Qa8dcZQMbH5EYFX6XC"
   }
  ],
  "source": "https://api.mainnet-beta.solana.com",
  "checkedAt": "2026-10-23T09:36:00.816Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pyth-network-oracle-price-feed-61684c72/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.chainmarket-api.workers.dev](https://www.zero.xyz/host/api.chainmarket-api.workers.dev/llms.txt)
