# ArcGate Swap Quote

> ArcGate Swap Quote is a paid API for AI agents from api.arcgate.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-10).

Returns a price quote for swapping one token for another, with routing across multiple DEX venues and optional split/multi-hop support

## Facts

- Endpoint: POST https://api.arcgate.dev/trade/v1/quote?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/arcgate-swap-quote-f5ef9eea
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1n5OnN8W1wnaYVaFoQfQv

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 arcgate-swap-quote-f5ef9eea -d '<json body>'
```

Example prompt: Get me a swap quote to buy exactly 500 USDC by selling WETH — use exactOut side, allow up to 2 hops and splits across venues, with 30 basis points slippage and a 60-second TTL.

## When to prefer this

Use this endpoint when you need a real-time, multi-venue DEX swap quote with fine-grained control over routing (hops, splits, venue inclusion/exclusion) before committing to a transaction. Prefer this over generic price-feed APIs when you need an actionable, executable quote — especially when paired with ArcGate's swap transaction endpoint to complete the trade. Best suited for DeFi agents that need to evaluate trade feasibility and cost before execution.

## Known failure modes

- Invalid or unknown token symbols in buy/sell fields
- Amount too small or too large for available liquidity
- No route found between the specified tokens
- Unsupported or unavailable venue specified
- TTL value outside 1–120 range
- Slippage bps outside 0–5000 range
- maxSplits or maxHops out of allowed range
- Payment not provided or incorrect (x402 payment required)

## How this service works

Swap quote

## Output

Returns a structured swap quote including the input/output token amounts, the routing path across DEX venues, price impact, and any split details — giving the agent everything needed to decide whether to execute the trade via the companion swap-transaction endpoint.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "buy": {
   "type": "string",
   "maxLength": 128,
   "minLength": 1
  },
  "sell": {
   "type": "string",
   "maxLength": 128,
   "minLength": 1
  },
  "side": {
   "enum": [
    "exactIn",
    "exactOut"
   ],
   "type": "string"
  },
  "taker": {
   "anyOf": [
    {
     "type": "string"
    },
    {
     "type": "null"
    }
   ]
  },
  "amount": {
   "type": "string",
   "maxLength": 80,
   "minLength": 1
  },
  "ttlSec": {
   "type": "integer",
   "maximum": 120,
   "minimum": 1
  },
  "venues": {
   "anyOf": [
    {
     "type": "array",
     "items": {
      "type": "string",
      "maxLength": 64,
      "minLength": 1
     },
     "maxItems": 16
    },
    {
     "type": "null"
    }
   ]
  },
  "maxHops": {
   "anyOf": [
    {
     "type": "number",
     "const": 1
    },
    {
     "type": "number",
     "const": 2
    }
   ]
  },
  "sources": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 32,
    "minLength": 1
   },
   "maxItems": 4,
   "minItems": 1
  },
  "maxSplits": {
   "type": "integer",
   "maximum": 5,
   "minimum": 1
  },
  "allowSplits": {
   "type": "boolean"
  },
  "slippageBps": {
   "type": "integer",
   "maximum": 5000,
   "minimum": 0
  },
  "excludeVenues": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 64,
    "minLength": 1
   },
   "maxItems": 16
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/arcgate-swap-quote-f5ef9eea/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.arcgate.dev](https://www.zero.xyz/host/api.arcgate.dev/llms.txt)
