{"uid":"cap_rEKKQTlN7FoDgkKEotdr4","slug":"dex-twap-price-feed-1h-24h-by-agentfeeds-jp-83239998","name":"DEX TWAP Price Feed (1h/24h) by agentfeeds.jp","description":"Time-weighted average price (1h/24h) per venue pair, computed from our own 1-minute observation buckets. Includes coverage_pct and method notes for verifiability. Descriptive statistics only; not investment advice.","url":"https://api.agentfeeds.jp/v1/dex/twap","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["pair"],"properties":{"pair":{"type":"string"},"window":{"type":"string","description":"'1h' or '24h'"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_UMQXpQ3RBTm99DgU34W9L","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns time-weighted average price (TWAP) for a DEX venue pair over a 1-hour or 24-hour window, computed from 1-minute observation buckets with coverage and methodology metadata.","exampleAgentPrompt":"What's the time-weighted average price of ETH/USDC on the DEX over the last 24 hours — I need the coverage percentage and methodology notes too so I can verify the data quality.","exampleUseCases":null,"resultDescription":"Returns the TWAP for the requested pair and window (1h or 24h), derived from 1-minute observation buckets. Includes the computed average price, coverage_pct indicating what fraction of the window had data, and method notes explaining how the average was calculated for verifiability.","failureModes":["Missing required 'pair' query parameter returns a 400 error","Invalid window value (not '1h' or '24h') results in a validation error","Unknown or unsupported trading pair returns empty or 404 response","Insufficient observation data within the window results in low coverage_pct with possibly unreliable TWAP","Payment not provided or insufficient triggers x402 payment-required response","Rate limiting or upstream data gaps may cause partial data returns"],"whenToPreferThis":"Use this endpoint when you need a verifiable, statistically sound time-weighted average price for a DEX trading pair rather than a spot price, especially when data quality transparency (coverage_pct, method notes) matters. Prefer this over raw tick data endpoints when you need pre-aggregated TWAP in 1h or 24h granularity without doing the averaging yourself. Best for DeFi analytics, reference pricing, and on-chain financial workflows where methodology auditability is important.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:32:10.856Z","isFirstParty":false}