x402basequality 0.65

Look up token prices by chain:address pairs via x402 micropayment, part of a 26-endpoint DeFi intelligence API.

Price
per_call
Protocol
x402
Verified
no

What it does

The `/defi/price` endpoint on the DeFi Intelligence API at defi.hugen.tokyo returns token price data given comma-separated `chain:address` pairs (e.g., `ethereum:0xdac17f...`). It is one of 26 DeFi-focused endpoints exposed through the x402 payment protocol, meaning each call costs a single micropayment — $0.01 USDC on Base — with no API keys or rate limits required. The broader API surface covers token security audits, address and NFT security checks, rugpull detection, phishing URL checks, EVM transaction simulation, approval security, dApp audits, cross-chain bridge quoting/routing/status, gas prices, protocol info and TVL, stablecoin data, DEX volume, and protocol fees.

The endpoint accepts a GET request with a required `coins` query parameter. The value is a comma-separated list of `chain:address` identifiers. The response schema is not explicitly documented beyond a generic 200 JSON response, but the upstream data likely returns price, symbol, and confidence fields per coin (as suggested by the sample in the x402 challenge). Alternative access methods include a broker API (via API key at discovery.hugen.tokyo), an MCP server at mcp.hugen.tokyo, and a Python SDK (`pip install x402-pay`).

Capabilities

token-price-lookupmulti-chainx402-micropaymentdefi-dataevm-token-pricingno-api-key

Use cases

  • Fetching current token prices for portfolio dashboards or trading bots
  • Resolving on-chain token addresses to USD prices for DeFi analytics
  • Powering AI agents that need real-time crypto price data without API key setup
  • Cross-chain price comparison for arbitrage detection

Fit

Best for

  • AI agents needing pay-per-call token price data with no signup
  • Developers who want a single API covering multiple upstream DeFi data sources
  • Quick prototyping of DeFi tools without managing API keys or rate limits

Not for

  • High-frequency trading requiring sub-second latency and free unlimited calls
  • Historical OHLCV candlestick data or charting use cases
  • Users who need free/unlimited price feeds (e.g., CoinGecko free tier)

Quick start

# Using the x402-pay Python SDK
pip install x402-pay

import x402_pay
resp = x402_pay.get(
  'https://defi.hugen.tokyo/defi/price?coins=ethereum:0xdac17f958d2ee523a2206206994597c13d831ec7'
)
print(resp.json())

Example

Request

{
  "url": "https://defi.hugen.tokyo/defi/price?coins=ethereum:0xdac17f958d2ee523a2206206994597c13d831ec7",
  "method": "GET"
}

Response

{
  "coins": {
    "ethereum:0xdac17f958d2ee523a2206206994597c13d831ec7": {
      "price": 1,
      "symbol": "USDT",
      "decimals": 6,
      "confidence": 0.99
    }
  }
}

Endpoint

Transporthttp
Protocolx402
Pay to0x29322Ea7EcB34aA6164cb2ddeB9CE650902E4f60
CurrencyUSD COIN

Quality

0.65/ 1.00

The endpoint is live (402 challenge captured), has a full OpenAPI spec with parameter descriptions, and pricing is clear ($0.01 USDC on Base). However, the response schema for /defi/price is empty (no defined output fields), and the example response is inferred from the x402 challenge sample rather than actual endpoint documentation. No dedicated docs page for this specific endpoint exists.

Warnings

  • Response schema is not defined in the OpenAPI spec — the 200 response has an empty schema object.
  • Example response is inferred from the x402 challenge sample data, not from actual endpoint output documentation.
  • Root URL returns 404; documentation is only available at /docs.

Citations

Provenance

Indexed fromx402_bazaar
Enriched2026-04-22 02:19:49Z · anthropic/claude-opus-4.6 · v2
First seen2026-04-21
Last seen2026-04-22

Agent access

Look up token prices by chain:address pairs via x402 micropayment, part of a 26-endpoint DeFi intelligence API. — Clawmart · Clawmart