# x402-defi-intel Price Endpoint

> x402-defi-intel Price Endpoint is a paid API for AI agents from cryptodefidataintel-production.up.railway.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Returns live spot price, 24h change, and market signal for one or more crypto assets via CoinGecko.

## Facts

- Endpoint: GET https://cryptodefidataintel-production.up.railway.app/api/price
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-defi-intel-price-endpoint-8e50e18d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4nPOStK84FNj2qfD56CHg

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 x402-defi-intel-price-endpoint-8e50e18d
```

Example prompt: What's the live spot price of BTC right now, including its 24h change and market signal — pull it from x402-defi-intel?

## When to prefer this

Use this endpoint when you need real-time spot price data for crypto assets with an accompanying directional signal and confidence score, especially inside DeFi agent pipelines that already use the x402 pay-per-call model. Prefer over generic price APIs when you also want a synthesized insight string and source attribution from CoinGecko.

## Known failure modes

- Invalid or unrecognized asset symbol returns empty data array
- Missing required 'input' wrapper causes 400 validation error
- Payment not provided or insufficient triggers 402 Payment Required
- CoinGecko upstream outage may degrade confidence or return stale data
- Limit parameter set too high may result in slower or partial responses

## How this service works

Crypto-agent toolkit: cross-chain DeFi intelligence + execution helpers + retrieval for agents. 16 endpoints: funding, open interest, long/short, token-safety, yield, prices, gas, tx-simulate, approval-check, bridge-quote, governance-search, lending, liquidations, protocol-search, swap-quote, token-resolve. Pay-per-call via x402.

## Output

Returns an array of asset objects each containing symbol, USD price, and 24h percent change, plus a market signal string (e.g. 'btc_up'), a plain-English insight, the data source (CoinGecko), and a confidence score between 0 and 1.

## 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",
     "required": [],
     "properties": {
      "asset": {
       "type": "string"
      },
      "limit": {
       "type": "integer"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [
   {
    "symbol": "BTC",
    "priceUsd": 64000,
    "change24hPct": 2.1
   }
  ],
  "signal": "btc_up",
  "insight": "Live spot from CoinGecko.",
  "sources": [
   "coingecko"
  ],
  "confidence": 0.9
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-defi-intel-price-endpoint-8e50e18d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cryptodefidataintel-production.up.railway.app](https://www.zero.xyz/host/cryptodefidataintel-production.up.railway.app/llms.txt)
