# Batch Crypto Prices (CoinGecko via Railway)

> Batch Crypto Prices (CoinGecko via Railway) is a paid API for AI agents from currency-api-production-4a8d.up.railway.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Fetches current prices, market caps, and 24-hour changes for up to 50 cryptocurrencies in a single batch call, using CoinGecko data.

## Facts

- Endpoint: POST https://currency-api-production-4a8d.up.railway.app/crypto/prices
- 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/batch-crypto-prices-coingecko-via-railway-4b2b65d3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4aG-8bn1n2Tn3wq7ne5jN

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 batch-crypto-prices-coingecko-via-railway-4b2b65d3 -d '<json body>'
```

Example prompt: Can you grab the current prices, market caps, and 24-hour changes for BTC, ETH, SOL, ADA, and DOGE all at once, quoted in USD?

## When to prefer this

Choose this endpoint when you need price data for multiple cryptocurrencies at once and want to minimize API calls and cost — it handles up to 50 coins per request. Use the sibling single-coin endpoint if you only need one coin. Prefer this over manual looping for portfolio snapshots, dashboards, or screeners where batch efficiency matters.

## Known failure modes

- Unrecognized coin symbol or name returns an error or omits that coin from results
- Requesting more than 50 coins in a single call is rejected
- Invalid vs_currency code causes an error or falls back to USD
- CoinGecko upstream downtime or rate limiting causes 5xx or timeout
- Malformed input array (non-string items) causes a validation error

## How this service works

Batch current prices, market caps, and 24h changes for up to 50 cryptocurrencies by symbol or name (CoinGecko).

## Output

Returns a batch of price data objects for each requested coin, including current price in the specified quote currency, market capitalization, and 24-hour absolute and percentage price change — all sourced from CoinGecko in a single response.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "coins": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "maxItems": 50,
   "description": "Up to 50 cryptocurrency symbols or names to price in one batch, e.g. ['btc', 'eth', 'sol']."
  },
  "vs_currency": {
   "type": "string",
   "description": "Quote currency code, e.g. 'usd'. Defaults to usd if omitted."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/batch-crypto-prices-coingecko-via-railway-4b2b65d3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from currency-api-production-4a8d.up.railway.app](https://www.zero.xyz/host/currency-api-production-4a8d.up.railway.app/llms.txt)
