---
name: crypto-prices
description: Call the Crypto Prices API through Service Router, paying per call. Spot prices for 5,000 tokens, aggregated across exchanges. Use when the user needs crypto, prices, tokens.
---

# Crypto Prices

Volume-weighted spot prices for thousands of tokens, updated every few seconds, with 24-hour change and volume.

Base URL: `https://pay-servicerouter.agents.bakingbad.dev/service/crypto-prices`. Send `Authorization: Bearer $SERVICEROUTER_PAYMENT_KEY`. No payment key yet: follow https://servicerouter.agents.bakingbad.dev/llms.txt with the user's consent, or pay per call with x402 or MPP from the `402` answer.

| Route | Price | Pay with |
|---|---|---|
| `GET /price/{asset}` (Spot price) | $0.0001 | credits (payment key) |

```sh
curl -X GET https://pay-servicerouter.agents.bakingbad.dev/service/crypto-prices/price/<asset> \
  -H "Authorization: Bearer $SERVICEROUTER_PAYMENT_KEY"
```

- Only `2xx` answers are charged. Each carries a receipt header.
- `402` with a code such as `insufficient_balance` or `key_budget_exceeded`: ask the user before topping up or raising limits.
- OpenAPI: https://servicerouter.agents.bakingbad.dev/discover/crypto-prices/openapi.json

Prompt for the user to give an agent: "Use the Crypto Prices API through Service Router. Read https://servicerouter.agents.bakingbad.dev/discover/crypto-prices/llms.txt for how to call and pay for it. Ask me before you spend anything."
