DEX volume data across protocols via x402 micropayment — $0.01 per call on Base.
What it does
The `/defi/dex/volume` endpoint is part of the DeFi Intelligence API hosted at defi.hugen.tokyo. It returns aggregated DEX trading volume data, including total 24-hour volume and per-protocol breakdowns (e.g., Uniswap). The endpoint requires no query parameters — a simple GET request returns the current volume snapshot. Payment is handled via the x402 protocol at $0.01 USDC per call on Base.
This endpoint is one of 26 DeFi-focused endpoints offered by the same API, which covers token security audits, rugpull detection, bridge routing, gas prices, TVL, protocol fees, and more. All endpoints follow the same x402 pay-per-call model with no API keys or rate limits required. Alternative access methods include a broker API (with an API key and prepaid credit), an MCP server at mcp.hugen.tokyo, and a Python SDK (`x402-pay`).
The response schema for this specific endpoint is not formally documented beyond the sample in the 402 challenge, which shows fields like `totalVolume24h` (a numeric value in USD) and a `protocols` array with `name` and `volume24h` per protocol. The endpoint was confirmed live via a 402 challenge response during probing.
Capabilities
Use cases
- —Monitoring aggregate DEX trading volume across protocols in real time
- —Building dashboards that track daily volume for Uniswap, SushiSwap, and other DEXes
- —Agent-driven DeFi analytics pipelines that need volume data without API key management
- —Comparing protocol-level DEX volumes for research or trading signals
- —Feeding volume metrics into automated trading or risk models
Fit
Best for
- —AI agents needing pay-per-call DEX volume data with no setup
- —Developers who want aggregated multi-protocol DEX volume in a single call
- —Projects that prefer x402 micropayments over subscription-based data APIs
Not for
- —Historical DEX volume time-series analysis (endpoint appears to return current snapshot only)
- —High-frequency polling where per-call costs would accumulate significantly
- —Users who need free or open DEX volume data (DefiLlama offers similar data at no cost)
Quick start
# Using the x402-pay Python SDK
pip install x402-pay
import x402_pay
response = x402_pay.get('https://defi.hugen.tokyo/defi/dex/volume')
print(response.json())Example
Response
{
"protocols": [
{
"name": "Uniswap",
"volume24h": 1800000000
}
],
"totalVolume24h": 5200000000
}Endpoint
Quality
The endpoint is confirmed live via a 402 challenge, and the OpenAPI spec documents the route. However, the response schema is not formally defined (empty schema in OpenAPI), and the only example comes from the 402 challenge sample. No dedicated documentation page exists for this endpoint. Pricing is clear at $0.01 USDC on Base.
Warnings
- —Response schema is not formally defined in the OpenAPI spec — the sample in the 402 challenge is the only documentation of the response shape.
- —No dedicated docs page for this endpoint beyond the auto-generated Swagger listing.
- —The sample response in the 402 challenge may not represent the full response structure.
- —Similar DEX volume data is available for free from DefiLlama and other aggregators.
Citations
- —The endpoint is part of a 26-endpoint DeFi Intelligence API with x402 pay-per-call pricing.https://defi.hugen.tokyo/docs
- —Payment is $0.01 USDC on Base per call.https://defi.hugen.tokyo/defi/dex/volume
- —Alternative access via broker API, MCP server, and x402-pay Python SDK is available.https://defi.hugen.tokyo/defi/dex/volume
- —Sample response includes totalVolume24h and per-protocol volume breakdown.https://defi.hugen.tokyo/defi/dex/volume
- —The endpoint requires no query parameters (GET with no params).https://defi.hugen.tokyo/openapi.json