{"uid":"cap_-iOmRZiBsdaz-Hc77_AdR","slug":"dex-swap-history-buy-sell-flow-for-base-tokens-09b18eca","name":"DEX Swap History & Buy/Sell Flow for Base Tokens","description":"Recent DEX swap history + buy/sell flow for a token or pool on Base: per-swap trader/side/amount/price plus a summary (count, buy/sell volume, net flow, largest swaps), decoded by us from public Aerodrome/Uniswap-V3 Swap event logs.","url":"https://api.agentstools.dev/dex/swaps","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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":[],"properties":{"pool":{"type":"string","description":"Explicit pool address (0x..) instead of a token symbol"},"limit":{"type":"integer","maximum":500,"minimum":1,"description":"Max swaps to return (default/cap 500; summary covers the full window)"},"token":{"type":"string","description":"Base token symbol (e.g. WETH/AERO); aggregates all its tracked pools"},"window":{"type":"string","description":"Look-back window, e.g. 30m / 1h / 6h (default 1h, max ~6h)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_mtiVMoM8-1xL30igtXVYh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns recent DEX swap history and buy/sell flow summary for a token or pool on Base, decoded from Aerodrome/Uniswap-V3 on-chain event logs.","exampleAgentPrompt":"Show me the buy/sell flow for AERO on Base over the last 30 minutes — I want per-swap details plus a summary of total volume, net flow, and the biggest trades.","exampleUseCases":null,"resultDescription":"Returns a list of individual swaps (trader address, buy/sell side, amount, price) plus an aggregate summary including total swap count, buy volume, sell volume, net flow, and the largest swaps — all decoded from Aerodrome/Uniswap-V3 Swap event logs on Base within the requested time window.","failureModes":["Unknown token symbol returns empty results or an error if the token has no tracked pools","Pool address not found on Base returns an empty swap list","Window exceeds the ~6h maximum, resulting in a capped or error response","No swaps in the requested window returns an empty list with zeroed summary","Invalid pool or token address format returns a 400-level error"],"whenToPreferThis":"Choose this endpoint when you need on-chain DEX swap activity specifically on the Base network, decoded from Aerodrome or Uniswap V3 logs, including per-trade granularity (trader, side, amount, price) plus an aggregated buy/sell flow summary. Prefer this over generic price feeds when you need actual trading flow, net buying/selling pressure, or whale trade detection on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:02:15.068Z","isFirstParty":false}