# Rug Oracle Crypto Price Feed

> Rug Oracle Crypto Price Feed is a paid API for AI agents from rug-oracle.vercel.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Fetches current prices for up to 25 crypto coins per call using DefiLlama coin IDs, with sub-second cached responses.

## Facts

- Endpoint: POST https://rug-oracle.vercel.app/v1/prices
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/rug-oracle-crypto-price-feed-2ca71294
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oxeXbm2FNjxwstP6yqhl_

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 rug-oracle-crypto-price-feed-2ca71294 -d '<json body>'
```

Example prompt: What are the current prices for coingecko:ethereum, coingecko:bitcoin, and base:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 right now?

## When to prefer this

Use this endpoint when you need fast, cached, real-time price lookups for multiple crypto tokens (up to 25) identified by DefiLlama IDs or on-chain contract addresses. Prefer it over manual price scraping or heavier analytics APIs when sub-second latency and cost-efficiency matter. Ideal for DeFi portfolio tools, risk scoring systems, or any agent needing quick multi-token price hydration.

## Known failure modes

- Invalid or unrecognized DefiLlama coin ID returns missing or null price entry
- Requesting more than 25 coins in a single call may result in an error or truncated response
- Network or upstream DefiLlama data unavailability causes stale or missing prices
- Payment failure (x402 protocol) blocks access to the endpoint
- Malformed coin ID format (e.g. missing chain prefix) returns no data for that coin

## How this service works

Current crypto prices for up to 25 coins per call (DefiLlama ids like "coingecko:ethereum" or "base:0x833..."). Cached, sub-second.

## Output

Returns current USD prices for each requested coin, keyed by their DefiLlama ID. Response is cached for sub-second latency and covers up to 25 coins per call.

## 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": [
      "POST"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "coins"
     ],
     "properties": {
      "coins": {
       "type": "array",
       "items": {
        "type": "string"
       },
       "maxItems": 25,
       "description": "DefiLlama coin ids, e.g. \"coingecko:ethereum\" or \"base:0x833...\""
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/rug-oracle-crypto-price-feed-2ca71294/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from rug-oracle.vercel.app](https://www.zero.xyz/host/rug-oracle.vercel.app/llms.txt)
