{"uid":"cap_76Jb4_W1-kDBiZZx0Q-ml","slug":"xh-agents-arkham-style-exchange-flow-tracker-22b8b0a1","name":"XH Agents — Arkham-Style Exchange Flow Tracker","description":"Inflow/outflow for an ERC-20 token on Base over a window, measured where it is actually verifiable: each of the token's deepest pools has its own balance of that token read at two blocks, so the change, direction (into pool = sell side, out of pool = bought) and USD value are real numbers, plus the pool's price move from slot0 where the pool exposes it. Pools that cannot be read are listed with ...","url":"https://xhagents.xyz/api/arkham-intel/exchange-flow?utm_source=zero.xyz","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":["token"],"properties":{"hours":{"type":"integer","maximum":24,"minimum":1},"token":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"pools":[{"dex":"aerodrome","pair":"0x…","direction":"out_of_pool (bought)","usd_change":1200,"reserve_now":89800,"reserve_then":91000,"token_change":-1200}],"price":{"method":"derived_from_quote_side","price_usd":1},"token":"0x8335…2913","pool_totals":{"net":400.25,"into_pools":1200.5,"out_of_pools":800.25}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","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.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_R8mBNRzZoC97yXmbncck6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Tracks token flow in and out of DEX liquidity pools on Base over a configurable time window, returning per-pool directional data and aggregate net flow totals.","exampleAgentPrompt":"Can you pull the exchange flow data for token 0x8335…2913 on Base over the last 6 hours and tell me whether it's being net bought or sold across DEX pools?","exampleUseCases":[{"title":"Whale accumulation signal detection","prompt":"Check if anyone has been aggressively buying that new Base token 0x8335…2913 in the last 12 hours — show me the pool-level inflows and outflows and whether there's net buying pressure."},{"title":"DeFi token pre-trade sentiment check","prompt":"Before I buy this Base token, can you look at the last 4 hours of DEX flow for 0x8335…2913 and tell me the net direction and how reserves have shifted across pools?"},{"title":"Automated token monitoring alert","prompt":"Every hour, check the exchange flow for token 0x8335…2913 on Base over the last 1 hour and flag me if the net pool flow swings more than $5,000 in either direction."}],"resultDescription":"Returns a JSON object with a per-pool array (DEX name, pair address, flow direction, USD reserve change, current and prior reserves, token change), a derived USD price, the token address, and aggregate pool totals including net flow, total inflow, and total outflow in USD.","failureModes":["Invalid or non-existent token address returns empty pool array or error","hours parameter out of range (less than 1 or greater than 24) returns validation error","Token with no DEX liquidity on Base returns pools array with no entries","Payment not settled — x402 402 response returned if USDC payment fails","Network latency on Base RPC may cause slow or incomplete pool snapshots"],"whenToPreferThis":"Use this endpoint when you need on-chain, real-time DEX flow intelligence for a specific Base token — especially to detect accumulation, distribution, or unusual liquidity movements across multiple pools. Prefer it over generic price APIs when directional flow (bought vs sold) and reserve-level granularity matter. Unlike Arkham or Nansen (which require API keys and subscriptions), this endpoint requires only a $0.10 USDC x402 micropayment per call with no signup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-03T12:48:56.660Z","isFirstParty":false,"canonicalSlug":"xh-agents-arkham-style-exchange-flow-tracker-22b8b0a1"}