{"uid":"cap_FPx7Yj-Yr2GJkq3JfXlit","slug":"payai-dex-swap-history-buy-sell-flow-base-b96c5fa3","name":"PayAI DEX Swap History & Buy/Sell Flow (Base)","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://payai.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_IeM7ZiKcvLaMe3xShnpQP","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 aggregated buy/sell flow for a token or pool on Base, decoded from Aerodrome/Uniswap-V3 Swap event logs.","exampleAgentPrompt":"Show me the last hour of swap activity for WETH on Base — I want to see the individual trades plus a summary of total buy and sell volume and net flow, with up to 200 swaps.","exampleUseCases":[{"title":"Monitor whale trading activity Base pools","prompt":"Check the last 30 minutes of swaps for the USDC/AERO pool on Aerodrome and flag any trades over $100k — I want to see who's moving big amounts and whether they're buying or selling."},{"title":"Track buying pressure on new tokens","prompt":"Pull the last 6 hours of swap history for this new Base token and tell me if there's more buying or selling pressure. Show me the net flow and the largest swaps so I can see if whales are accumulating or dumping."},{"title":"Analyze DEX liquidity shifts hourly","prompt":"Give me the swap activity summary for WETH on Uniswap V3 Base from the last 2 hours — I need the total buy volume, sell volume, and net flow direction so I can understand if liquidity is drying up or flowing in."}],"resultDescription":"Returns a list of individual swaps (trader address, buy/sell side, amount, price) within the requested window, plus a summary object containing total swap count, aggregate buy volume, sell volume, net flow direction, and the largest swaps — all decoded from Aerodrome/Uniswap-V3 event logs on Base.","failureModes":["Token symbol not recognized or not tracked — returns empty or error","Pool address invalid or not indexed — returns no data","Window exceeds ~6h maximum — capped or rejected","Limit exceeds 500 — capped at 500","No swaps in the requested window — empty swap list with zero-summary","Payment not provided (x402) — 402 Payment Required response"],"whenToPreferThis":"Use this endpoint when you need decoded, human-readable DEX swap history specifically on the Base blockchain from Aerodrome or Uniswap V3 pools, including both per-trade granularity and aggregated buy/sell flow summaries. Prefer over raw RPC calls or block explorers when you want structured, pre-decoded swap data without indexing yourself.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:44:32.891Z","isFirstParty":false}