{
  "x402Version": 2,
  "id": 10982,
  "slug": "10982",
  "resource": "https://agentbit.app/v1/defi/price",
  "description": "Current token prices for up to 10 tokens per call, on any chain: address as <chain>:<address> (base:0x…, ethereum:0x…) or coingecko:<id> for majors. Aggregated market price with a confidence score and timestamp, from DefiLlama's open price engine. $0.002 — priced for agents that check before every trade.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x4395C7e383b7e05665aad7f36ed77c01923Dd965",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "2000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "description": "Token price lookup built for high-frequency agent use. Ask for up to 10 tokens in one call, addressed exactly how agents hold them: <chain>:<contract-address> for anything on Base, Ethereum, Arbitrum, Optimism, Polygon, Solana and 100+ other chains, or coingecko:<id> for majors (coingecko:ethereum, coingecko:bitcoin). Each answer carries the aggregated USD price, symbol, decimals, a CONFIDENCE score (how solid the price source mix is — thin DEX-only pricing scores lower) and the price timestamp, with unknown tokens listed separately in missing[] instead of failing the whole call. Source is DefiLlama's open price engine, which aggregates DEX and CEX sources. At $0.002 per call (first call free for new wallets, volume discounts advertised in every 402), it is priced to be called before every trade decision. Pairs with token-risk (is this token safe?) and stablecoin-stats (is my settlement currency on peg?).",
        "errors": [
          {
            "code": "PAYMENT_REQUIRED",
            "description": "Missing or invalid payment — retry with a valid PAYMENT-SIGNATURE header",
            "retryable": true,
            "status": 402
          },
          {
            "code": "VALIDATION_ERROR",
            "description": "Request body does not match the input schema",
            "retryable": false,
            "status": 422
          },
          {
            "code": "RATE_LIMITED",
            "description": "Too many requests from this client",
            "retryable": true,
            "status": 429
          },
          {
            "code": "UPSTREAM_TIMEOUT",
            "description": "Upstream data source unavailable — safe to retry",
            "retryable": true,
            "status": 502
          }
        ],
        "input": {
          "body": {
            "tokens": [
              "base:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
              "coingecko:ethereum"
            ]
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "networks": [
          "eip155:8453"
        ],
        "output": {
          "example": {
            "found": 2,
            "missing": {},
            "prices": [
              {
                "as_of": "2026-09-06T14:00:00+00:00",
                "confidence": 0.99,
                "decimals": 6,
                "price_usd": 0.9998,
                "symbol": "USDC",
                "token": "base:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
              },
              {
                "as_of": "2026-09-06T14:00:00+00:00",
                "confidence": 0.99,
                "decimals": null,
                "price_usd": 4123.55,
                "symbol": "ETH",
                "token": "coingecko:ethereum"
              }
            ],
            "source": "DefiLlama coins API (aggregated market price with confidence score)"
          },
          "type": "json"
        },
        "pricing": {
          "amount": 0.002,
          "currency": "USDC",
          "firstCallFree": true,
          "model": "per-call",
          "quoteHint": "Send your wallet address in an X-BUYER-WALLET header on the unpaid request to receive your personalized (volume-discounted) quote.",
          "volumeDiscounts": [
            {
              "minCalls30d": 100,
              "percent": 10
            },
            {
              "minCalls30d": 1000,
              "percent": 20
            }
          ]
        },
        "reliability": {
          "measuredAt": "2026-09-06T14:47:19+00:00",
          "p50LatencyMs": 149,
          "p95LatencyMs": 149,
          "sampleSize": 1,
          "successRatePercent": 100,
          "windowDays": 30
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "description": {
            "type": "string"
          },
          "errors": {
            "items": {
              "properties": {
                "code": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                },
                "status": {
                  "type": "integer"
                }
              },
              "required": [
                "status",
                "code"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "description": "Token Price input. Current token prices for up to 10 tokens per call, on any chain: address as <chain>:<address> (base:0x…, ethereum:0x…) or coingecko:<id> for majors. Aggregated market price with a confidence score and timestamp, from DefiLlama's open price engine. $0.002 — priced for agents that check before every trade.",
                "properties": {
                  "token": {
                    "description": "Single token: <chain>:<address> or coingecko:<id>",
                    "type": "string"
                  },
                  "tokens": {
                    "description": "Up to 10 tokens per call",
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  }
                },
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "headers": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "queryParams": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "networks": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          },
          "pricing": {
            "properties": {
              "amount": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "currency": {
                "type": "string"
              },
              "firstCallFree": {
                "type": "boolean"
              },
              "maxAmount": {
                "type": "number"
              },
              "model": {
                "type": "string"
              },
              "quoteHint": {
                "type": "string"
              },
              "volumeDiscounts": {
                "items": {
                  "properties": {
                    "minCalls30d": {
                      "type": "integer"
                    },
                    "percent": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "minCalls30d",
                    "percent"
                  ],
                  "type": "object"
                },
                "type": "array"
              }
            },
            "type": "object"
          },
          "reliability": {
            "properties": {
              "measuredAt": {
                "type": "string"
              },
              "p50LatencyMs": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "p95LatencyMs": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "sampleSize": {
                "type": "integer"
              },
              "successRatePercent": {
                "type": "number"
              },
              "windowDays": {
                "type": "integer"
              }
            },
            "required": [
              "successRatePercent",
              "sampleSize",
              "windowDays"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "agentbit.app",
  "lastUpdated": "2026-09-06T14:47:19.886Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-09-06T14:47:19.367Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "agentbit.app",
    "manifest_name": "agentbit.app",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}