# Coin Railz Batch DEX Price Quote

> Coin Railz Batch DEX Price Quote is a paid API for AI agents from coinrailz.com, paid per call via x402, $0.4/call, status unknown (last checked 2026-09-14).

Fetches price quotes from multiple DEXs in a single call for a given token swap on a specified blockchain

## Facts

- Endpoint: POST https://coinrailz.com/x402/service/batch-quote
- Price: $0.4/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coin-railz-batch-dex-price-quote-36693e81
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rf879uilR5Zgkp2t91pz1

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 coin-railz-batch-dex-price-quote-36693e81 -d '<json body>'
```

Example prompt: Can you get me the best available price quotes across all DEXs to swap 500 USDC for WETH on the Ethereum network, and tell me which DEX gives the best rate?

## When to prefer this

Use this endpoint when an AI agent or trading bot needs to compare prices across multiple DEXs in a single API call rather than querying each DEX individually. Ideal for price discovery, pre-trade routing, and arbitrage detection on supported blockchain networks. Prefer over single-DEX quote endpoints when best execution price is the priority.

## Known failure modes

- Unsupported chain returns error or empty quotes array
- Invalid token addresses result in no quotes returned
- Token pair with no liquidity yields empty quotes
- Amount too small or too large for available liquidity
- Network timeout or DEX unavailability yields partial results

## How this service works

Multi-DEX price quotes in single call - critical infrastructure for trading bot price discovery (B2B2C infrastructure)

## Output

Returns an array of price quotes from multiple DEXs for the requested token swap, along with the single best available price across all queried exchanges, enabling optimal routing decisions.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "chain",
  "amount",
  "toToken",
  "fromToken"
 ],
 "properties": {
  "chain": {
   "type": "string",
   "description": "Blockchain network"
  },
  "amount": {
   "type": "string",
   "description": "Input amount"
  },
  "toToken": {
   "type": "string",
   "description": "Output token address"
  },
  "fromToken": {
   "type": "string",
   "description": "Input token address"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "quotes": {
   "type": "array",
   "description": "Price quotes from multiple DEXs"
  },
  "bestPrice": {
   "type": "string",
   "description": "Best available price"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coin-railz-batch-dex-price-quote-36693e81/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from coinrailz.com](https://www.zero.xyz/host/coinrailz.com/llms.txt)
