{
  "x402Version": 2,
  "id": 4933,
  "slug": "4933",
  "resource": "https://x402.donnyautomation.com/call",
  "description": "Cross-DEX price, liquidity and gross arbitrage spread for ONE BSC pair in a single call, across PancakeSwap v2/v3, Biswap and ApeSwap. Returns pricesByVenue[], bestBuy, bestSell, midSpreadBps, crossDex (grossSpreadBps, grossUsd, optimalInput) and liquidity at a stated blockNumber. Requires ?pair=SYM/SYM (first symbol is USD-priceable); optional ?fee= pins one v3 tier. Errors: 400 bad_pair|bad_fee, 404 no_pools, 502 upstream_read_failed. Split views: /price, /liquidity, /route.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x2740651e046c59aB2A6510401140643292d3a96F",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "pair": "WBNB/USDC"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "bestBuy": {
              "price": 546.2,
              "venue": "pancakeV3:500"
            },
            "bestSell": {
              "price": 546.9,
              "venue": "pancake"
            },
            "blockNumber": 107399076,
            "chainId": 56,
            "crossDex": {
              "buyVenue": "pancakeV3:500",
              "grossSpreadBps": 14.05,
              "grossUsd": 3.2,
              "optimalInput": {
                "amount": 2.1,
                "token": "WBNB",
                "usd": 1148
              },
              "sellVenue": "pancake",
              "surface": "v2v3",
              "tickBoundaryBreach": false
            },
            "liquidity": {
              "totalTvlUsd": 9800000,
              "venues": 7
            },
            "midSpreadBps": 27.4,
            "nativeUsd": 546.6,
            "network": "bsc",
            "pair": "WBNB/USDC",
            "pricesByVenue": [
              {
                "feeBps": 25,
                "price": 546.6,
                "surface": "v2",
                "tvlUsd": 1348000,
                "venue": "pancake"
              },
              {
                "feeBps": 5,
                "price": 546.2,
                "surface": "v3",
                "tvlUsd": 2100000,
                "venue": "pancakeV3:500"
              }
            ],
            "source": "rpc",
            "ts": "2026-07-01T00:00:00.000Z"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "fee": {
                    "description": "Optional PancakeSwap v3 fee tier to restrict the v3 probe (e.g. 100, 500, 2500, 10000). Omit to probe all v3 tiers + v2.",
                    "type": "string"
                  },
                  "pair": {
                    "description": "Token pair as SYM/SYM; first symbol is the USD-priceable side (e.g. WBNB/USDC, WBNB/USDT, CAKE/WBNB).",
                    "type": "string"
                  }
                },
                "required": [
                  "pair"
                ],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "x402.donnyautomation.com",
  "lastUpdated": "2026-09-02T02:38:14.926Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-09-02T02:38:14.626Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "x402.donnyautomation.com",
    "manifest_name": "x402.donnyautomation.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}