75trust / 100

Trade Quote

by api.arcgate.dev in Onchain & crypto

x402 APIPassing, checked 59 min ago

Swap quote

POST
https://api.arcgate.dev/trade/v1/quote
Price
$0.01
per call in USDC
Uptime
100%
last 30 days
Response time
551 ms
938 ms slowest 5%
Last check
Passed
59 min ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

POST https://api.arcgate.dev/trade/v1/quote

Each call costs $0.01 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

POST https://api.arcgate.dev/trade/v1/quote
content-type: application/json

{
  "amount": "100",
  "buy": "0x128cc466b61f542da60c70e3aa11c10e19b84edb",
  "sell": "0x3600000000000000000000000000000000000000",
  "side": "exactIn"
}

Parameters

ParameterTypeRequiredDescription
allowSplitsbooleanNo
amountstringYes
buystringYes
excludeVenuesarray of stringNo
maxHopsnumberNo
maxSplitsintegerNo
sellstringYes
sidestringNo One of: exactIn, exactOut.
slippageBpsintegerNo
sourcesarray of stringNo
takerstring or nullNo
ttlSecintegerNo
venuesarray of string or nullNo

Example response

The provider's example. We can't check it without paying.

Example response, 125 lines
{
  "attestation": null,
  "best": {
    "amountOutQuoted": "0.037363756124729788",
    "amountOutRaw": "37363756124729788",
    "amountOutSimulated": "0.037363756124729788",
    "executable": true,
    "fee": {
      "amount": "0",
      "bps": 0,
      "collector": null,
      "token": "0x128cc466b61f542da60c70e3aa11c10e19b84edb"
    },
    "floorBasis": "simulated",
    "gasUsdc": "0.011649",
    "legs": [
      {
        "amountIn": "100",
        "amountOut": "0.037363756124729788",
        "minAmountOut": "0.03699011856348249",
        "routeIndex": 0,
        "shareBps": 10000
      }
    ],
    "minAmountOut": "0.03699011856348249",
    "provider": "native",
    "providerQuoteAgeBlocks": 0,
    "type": "two_hop"
  },
  "block": 23584000,
  "buy": {
    "address": "0x128cc466b61f542da60c70e3aa11c10e19b84edb",
    "decimals": 18,
    "discovered": "index",
    "launch": {
      "kind": "direct",
      "launchpad": "direct",
      "name": null,
      "url": null
    },
    "state": "pool_only",
    "symbol": "WETH",
    "verification": {
      "source": "circle_docs",
      "status": "verified",
      "trust": 1
    }
  },
  "expiresAt": "2026-10-09T23:56:06.775Z",
  "network": "eip155:5042",
  "next": "swap",
  "quoteId": "q_884b5883d6095ae4",
  "routes": [
    {
      "amountOutQuoted": "0.037363756124729788",
      "buyTaxBps": 0,
      "costVsMidBps": 0,
      "executable": true,
      "fee": {
        "amount": "0",
        "bps": 0,
        "collector": null,
        "token": "0x128cc466b61f542da60c70e3aa11c10e19b84edb"
      },
      "gasUsdc": "0.011649",
      "hops": [
        {
          "feeBps": 1,
          "poolId": "0x82916bee18fcef517b26c72d7cb5f13694e1db41",
          "tokenIn": "USDC",
          "tokenInAddress": "0x3600000000000000000000000000000000000000",
          "tokenOut": "cirBTC",
          "tokenOutAddress": "0x171a4217b86a807a64eb94757db6849fb4bdbaa0",
          "venue": "uniswap_v3"
        }
      ],
      "partialFill": false,
      "provider": "native",
      "providerQuoteAgeBlocks": 0,
      "routeId": "0x3600000000000000000000000000000000000000>0x128cc466b61f542da60c70e3aa11c10e19b84edb|uniswap_v3:0x82916bee18fcef517b26c72d7cb5f13694e1db41>aerodrome_cl:0x72dff32c9c5c28758565be0a7d4e6e42fb498506",
      "type": "two_hop"
    }
  ],
  "safety": {
    "buyImpactBps": 0,
    "buyTaxBps": null,
    "canSell": true,
    "execCostBps": null,
    "exitSellTaxBps": null,
    "maxBuyUsdc": null,
    "maxSellTokens": null,
    "method": "simulate_v1",
    "note": "Both endpoints are pinned assets; graph delivery was measured at the quote block.",
    "revertReason": null,
    "roundTripLossBps": null,
    "routeId": "graph:0x3600000000000000000000000000000000000000:0x128cc466b61f542da60c70e3aa11c10e19b84edb:1312085c30302f62f67311df",
    "scope": {
      "block": 23584000,
      "sellDelaySec": null,
      "tokenAgeSec": 9957697,
      "walletProfile": "fresh_eoa"
    },
    "sellDelaySec": null,
    "sellImpactBps": null,
    "sellTaxBps": null,
    "verdict": "pinned"
  },
  "sell": {
    "address": "0x3600000000000000000000000000000000000000",
    "amount": "100",
    "amountRaw": "100000000",
    "decimals": 6,
    "state": null,
    "symbol": "USDC",
    "verification": {
      "source": "circle_docs",
      "status": "verified",
      "trust": 1
    }
  },
  "side": "exactIn",
  "slippageBps": 100,
  "unsupportedVenues": [],
  "warnings": []
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.01.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://api.arcgate.dev/trade/v1/quote' \
  -H 'content-type: application/json' \
  --data-raw '{"amount":"100","buy":"0x128cc466b61f542da60c70e3aa11c10e19b84edb","sell":"0x3600000000000000000000000000000000000000","side":"exactIn"}'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://api.arcgate.dev/trade/v1/quote' \
  -H 'content-type: application/json' \
  --data-raw '{"amount":"100","buy":"0x128cc466b61f542da60c70e3aa11c10e19b84edb","sell":"0x3600000000000000000000000000000000000000","side":"exactIn"}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.01 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.01" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.01 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.arcgate.dev%2Ftrade%2Fv1%2Fquote&method=POST
const res = await pay("https://api.arcgate.dev/trade/v1/quote", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "amount": "100",
    "buy": "0x128cc466b61f542da60c70e3aa11c10e19b84edb",
    "sell": "0x3600000000000000000000000000000000000000",
    "side": "exactIn"
  }),
});
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.01 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.01"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://api.arcgate.dev/trade/v1/quote",
        json={
            "amount": "100",
            "buy": "0x128cc466b61f542da60c70e3aa11c10e19b84edb",
            "sell": "0x3600000000000000000000000000000000000000",
            "side": "exactIn",
        },
    )
    print(res.status_code, res.text)

Security scan

No findings

We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
59 min agoPassed402601 ms$0.01
6 h agoPassed402520 ms$0.01
11 h agoPassed402572 ms$0.01
16 h agoPassed402530 ms$0.01
21 h agoPassed402587 ms$0.01
Show 10 older checks
26 h agoPassed402665 ms$0.01
31 h agoPassed402506 ms$0.01
36 h agoPassed402548 ms$0.01
41 h agoPassed402551 ms$0.01
45 h agoPassed402264 ms$0.01
2 days agoPassed402493 ms$0.01
2 days agoPassed402587 ms$0.01
2 days agoPassed402571 ms$0.01
3 days agoPassed402497 ms$0.01
3 days agoPassed402687 ms$0.01