# x402 Crypto Portfolio Price API

> x402 Crypto Portfolio Price API is a paid API for AI agents from x402.167-172-95-184.nip.io, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-15).

Returns a multi-coin market snapshot (BTC, ETH, SOL, BNB, XRP) with individual USD prices and aggregate market cap, payable per-call with USDC via x402 protocol

## Facts

- Endpoint: GET https://x402.167-172-95-184.nip.io/portfolio
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-crypto-portfolio-price-api-44f8be38
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1rr4tVeU_vDNk5lrrShUa

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-crypto-portfolio-price-api-44f8be38
```

Example prompt: Can you pull the current prices for BTC, ETH, and SOL along with the total crypto market cap — I want a portfolio snapshot right now?

## When to prefer this

Choose this endpoint when an AI agent needs a quick, multi-coin USD price snapshot across the top 5 crypto assets (BTC, ETH, SOL, BNB, XRP) and total market cap in a single call, and is capable of autonomous micropayment via the x402 protocol on Base. Ideal for agents that need programmatic, pay-per-use price data without subscription overhead.

## Known failure modes

- 402 Payment Required — insufficient USDC balance or x402 payment not configured
- 503/timeout — upstream price feed unavailable
- Invalid network — payment attempted on wrong chain (must be Base)
- Rate limit or payment failure — facilitator rejects transaction

## How this service works

Agent-commerce trust/audit API for x402 challenge correctness, receipts, replay/context binding, failed payout triage, mandate readiness, and MCP/A2A discoverability.

## Output

A JSON object with per-coin USD prices for BTC, ETH, SOL, BNB, and XRP, a Unix timestamp of when the snapshot was taken, and a total_market_cap figure in USD. Payment of $0.05 USDC on Base is processed automatically via x402 before the data is returned.

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "network": "base",
  "portfolio": {
   "BTC": {
    "usd": 100000
   },
   "ETH": {
    "usd": 3500
   },
   "SOL": {
    "usd": 150
   }
  },
  "timestamp": 1780000000,
  "total_market_cap": 2500000000000
 },
 "description": "Multi-coin BTC/ETH/SOL/BNB/XRP market snapshot and aggregate market cap."
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-crypto-portfolio-price-api-44f8be38/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.167-172-95-184.nip.io](https://www.zero.xyz/host/x402.167-172-95-184.nip.io/llms.txt)
