{"uid":"cap_SdfqmqJok2z2lw3tNrnep","slug":"base-dex-swap-history-buy-sell-flow-0e8c747a","name":"Base DEX Swap History & Buy/Sell Flow","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://webtools402.176-109-107-191.sslip.io/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_KfpjQcHcQRnSWu8F35VlL","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 swap history and buy/sell flow summary for a token or liquidity pool on Base, decoded from Aerodrome/Uniswap-V3 on-chain event logs.","exampleAgentPrompt":"Can you pull the recent DEX swap history for AERO on Base over the last hour — I want to see individual swaps with trader, side, amount, and price, plus a summary of total buy/sell volume and net flow?","exampleUseCases":null,"resultDescription":"Returns an array of individual swap records (trader address, buy/sell side, token amount, USD price) plus an aggregate summary including total swap count, total buy volume, total sell volume, net flow direction, and the largest swaps in the window — all decoded from Aerodrome and Uniswap-V3 Swap event logs on Base.","failureModes":["Unknown token symbol returns empty results or error — use an exact symbol like WETH or AERO","Pool address not tracked returns no swap events","Window exceeds ~6h maximum — clamp to supported range","Limit above 500 is rejected — cap at 500","No swaps in the window returns empty swap array with zero-value summary","Invalid pool address format returns a validation error"],"whenToPreferThis":"Use this endpoint when you need decoded, human-readable on-chain swap data for Base DEX pools — specifically buy/sell flow, net trading pressure, and individual trader activity on Aerodrome or Uniswap V3. Prefer this over generic block explorers when you need pre-aggregated summaries (count, volume, net flow) alongside per-swap detail without running your own event log decoding.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:56:49.818Z","isFirstParty":false}