← APIs / AgentPay Pre-Trade Risk Check
Verified

AgentPay Pre-Trade Risk Check

Coinbase Bazaarby Coinbase Bazaar · marketplace

Pay-per-call x402 service at agentpay.tools, listed in the Coinbase Bazaar. Pre-trade risk check for AI agents trading crypto: live orderbook slippage at YOUR size, side-aware funding carry, open-interest crowding, and optional contract security — composed into a single ok/caution/avoid verdict with per-factor reasons and raw data embedded. Answers 'is this trade sane?' before trading, not after. Replaces four API integrations plus the judgment layer.

financefederated
Price per request
$0.01
Base URL
https://gateway.apiosk.com/cbz-agentpay-tools
Technical Specs
Auth MethodNone (x402 payment proof only)
Response FormatJSON
Endpoints2
Endpoints
MethodPathDescriptionCost
POST /tools/pre_trade_check/call Pre-trade risk check for AI agents trading crypto: live orderbook slippage at YOUR size, side-aware funding carry, open-interest crowding, and optional contract security — composed into a single ok/caution/avoid verdict with per-factor reasons and raw data embedded. Answers 'is this trade sane?' before trading, not after. Replaces four API integrations plus the judgment layer.
$0.01 default
View details
POST /tools/verified_route/call Buyer-side trust oracle for the x402 marketplace: 'I need X, budget $Y — which tool is real?' Sweeps the WHOLE catalog across many queries, collapses sybil/factory clusters (one wallet stamping many fake-distinct listings), ranks the genuinely-used survivors by unique-payer usage, and returns one vetted pick with a ready-to-pay challenge. The credit-bureau check an agent can't do in a single query.
$0.01 default
View details
Endpoint documentation
POST/tools/pre_trade_check/call
$0.01 default
Description

Pre-trade risk check for AI agents trading crypto: live orderbook slippage at YOUR size, side-aware funding carry, open-interest crowding, and optional contract security — composed into a single ok/caution/avoid verdict with per-factor reasons and raw data embedded. Answers 'is this trade sane?' before trading, not after. Replaces four API integrations plus the judgment layer.

Pricing
$0.01 default
Request schema
{
  "properties": {
    "parameters": {
      "properties": {
        "side": {
          "description": "Trade direction (funding carry is side-aware; default long)",
          "enum": [
            "long",
            "short"
          ],
          "type": "string"
        },
        "size_usd": {
          "description": "Intended position size in USD (drives the slippage check; default 10000)",
          "type": "number"
        },
        "symbol": {
          "description": "Asset to check, e.g. 'ETH', 'BTC', 'SOL'",
          "type": "string"
        },
        "token_address": {
          "description": "Optional ERC-20 address — adds a GoPlus security scan",
          "type": "string"
        }
      },
      "required": [
        "symbol"
      ],
      "type": "object"
    }
  },
  "type": "object"
}
Example response
{
  "factors": {
    "carry": {
      "level": "ok",
      "median_funding_pct": 0.01,
      "reason": "carry unremarkable"
    },
    "crowding": {
      "level": "ok",
      "long_short_ratio": 1.2,
      "reason": "positioning unremarkable"
    },
    "liquidity": {
      "level": "ok",
      "reason": "fills within 0.001% of best price",
      "slippage_pct": 0.001
    },
    "security": {
      "level": "skipped",
      "reason": "no token_address provided"
    }
  },
  "side": "long",
  "size_usd": 50000,
  "symbol": "ETH",
  "verdict": "ok"
}
POST/tools/verified_route/call
$0.01 default
Description

Buyer-side trust oracle for the x402 marketplace: 'I need X, budget $Y — which tool is real?' Sweeps the WHOLE catalog across many queries, collapses sybil/factory clusters (one wallet stamping many fake-distinct listings), ranks the genuinely-used survivors by unique-payer usage, and returns one vetted pick with a ready-to-pay challenge. The credit-bureau check an agent can't do in a single query.

Pricing
$0.01 default
Request schema
{
  "properties": {
    "parameters": {
      "properties": {
        "budget_usd": {
          "description": "Max USDC to pay the downstream tool per call (default 1)",
          "type": "number"
        },
        "chain": {
          "description": "Optional chain filter: 'base', 'arbitrum', 'solana'. Empty = all chains. Solana picks are discovery-only (probe coverage: Base only — on-chain delivery unverified)",
          "type": "string"
        },
        "need": {
          "description": "What the agent needs, e.g. 'dex pair liquidity', 'crypto prices'",
          "type": "string"
        }
      },
      "required": [
        "need"
      ],
      "type": "object"
    }
  },
  "type": "object"
}
Example response
{
  "catalog": {
    "biggest_factory": {
      "listings": 72,
      "pay_to": "0x2bb72231eed3"
    },
    "real_providers": 41,
    "scanned": 117,
    "sybil_collapsed": 73
  },
  "need": "dex pair liquidity",
  "recommendation": {
    "calls30d": 3246,
    "name": "Otto AI",
    "network": "eip155:8453",
    "payers30d": 200,
    "price_usd": "0.001",
    "quality": 3851,
    "ready_to_pay": {
      "accepts": {
        "network": "eip155:8453",
        "scheme": "exact"
      },
      "network": "eip155:8453",
      "url": "https://otto.example/dex"
    },
    "url": "https://otto.example/dex"
  },
  "vetting": "swept 17 queries → 117 listings → collapsed 73 sybil listings → 41 real providers"
}