# Crypto Market Metrics API

> Crypto Market Metrics API is a paid API for AI agents from store.agentexchange.work, paid per call via x402, $0.09/call, status unknown (last checked 2026-09-14).

Returns real-time price, market cap, and 24-hour trading volume for specified cryptocurrencies by CoinGecko-style ID.

## Facts

- Endpoint: GET https://store.agentexchange.work/crypto/market-metrics
- Price: $0.09/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/crypto-market-metrics-api-344e00ec
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_m0eCfnq3Cv0LOM1qYeTLo

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 crypto-market-metrics-api-344e00ec
```

Example prompt: Pull the current price, market cap, and 24-hour volume for bitcoin, ethereum, and solana so I can update my portfolio tracker.

## When to prefer this

Use this endpoint when you need real-time market metrics (price, market cap, 24h volume) for one or more specific cryptocurrencies by ID and want a lightweight, per-call micropayment model via x402 rather than managing a full API subscription. Ideal for AI agents executing automated trading decisions or portfolio snapshots.

## Known failure modes

- Missing or empty 'ids' query parameter returns validation error
- Invalid or unrecognized coin ID returns empty metrics or error
- Payment failure (402) if x402 micropayment not provided
- Rate limiting if too many concurrent calls
- Stale data if upstream price feed is delayed

## How this service works

Real-time price, market cap, and 24h volume for top cryptocurrencies to enable automated trading decisions and portfolio tracking.

## Output

Returns a JSON object containing a metrics map keyed by coin ID, each with real-time price, market cap, and 24h trading volume, plus a scanned_at Unix timestamp indicating when the data was fetched.

## 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": [
      "ids"
     ],
     "properties": {
      "ids": {
       "type": "string",
       "description": "Comma-separated list of cryptocurrency ids (e.g., bitcoin,ethereum) (required)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "query": {
       "type": "string"
      },
      "metrics": {
       "type": "object"
      },
      "scanned_at": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/crypto-market-metrics-api-344e00ec/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from store.agentexchange.work](https://www.zero.xyz/host/store.agentexchange.work/llms.txt)
