{"uid":"cap_3P-phE9IYsGgDdAB5pEHA","slug":"token-swap-imports-csv-column-statistics-11ecdea8","name":"Token Swap Imports — CSV Column Statistics","description":"Token swap imports — Column statistics: Column statistics for Token swap imports. Validate a declared CSV table contract, up to 1000 rows. Quoted cells supported; no external enrichment. Specialised preset in a shared 50-profile, 20-operation engine. 0.01 USDC includes one CSV column statistics report.","url":"https://market.datapackvibe.com/x402/assistant-bx-csv-token-swaps-column-stats?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"csv":{"type":"string","default":"swap_id,executed_on,pool_address,input_tokens,output_tokens\nrecord-a,2026-01-01,group-a,10,2\nrecord-b,2026-01-02,group-b,20,3","maxLength":100000,"minLength":1},"maximum":{"type":"number","default":1000000000000,"maximum":1000000000000,"minimum":-1000000000000},"minimum":{"type":"number","default":-1000000000000,"maximum":1000000000000,"minimum":-1000000000000},"delimiter":{"enum":[",",";","\t"],"type":"string","default":","},"max_cell_length":{"type":"integer","default":1000,"maximum":5000,"minimum":1},"allowed_categories":{"type":"array","items":{"type":"string","default":"","maxLength":100,"minLength":1},"default":["group-a","group-b"],"maxItems":100,"minItems":0}}},"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_scjpfHPdX4V7DHx5BroN5","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":"Validates a token swap CSV and returns per-column statistics (count, min, max, mean, categories) for up to 1000 rows.","exampleAgentPrompt":"Can you run column statistics on my token swap CSV — it uses comma delimiters and has columns swap_id, executed_on, pool_address, input_tokens, output_tokens — and validate that pool_address only contains 'group-a' or 'group-b', with numeric values between 0 and 1000000?","exampleUseCases":[{"title":"Validate DeFi swap import before ingestion","prompt":"I'm about to import this token swap CSV into our data warehouse — can you validate it and give me column-level statistics so I can catch any out-of-range numeric values or unexpected pool addresses before it goes in? Allowed pool categories are 'pool-alpha' and 'pool-beta', delimiter is comma."},{"title":"Audit swap dataset numeric ranges","prompt":"Here's a CSV of token swaps from last quarter. Can you compute the min, max, and mean for the input_tokens and output_tokens columns, and flag anything outside the range 0 to 500000? The file is comma-delimited."},{"title":"Category distribution check for swap pools","prompt":"I need to know how many swaps happened on each pool in this CSV — columns are swap_id, executed_on, pool_address, input_tokens, output_tokens. Can you give me a breakdown of pool_address categories and confirm only 'mainnet-1', 'mainnet-2', and 'testnet-1' appear?"}],"resultDescription":"A per-column statistics report covering row counts, numeric min/max/mean, and category frequency distributions for the submitted token swap CSV, along with any validation failures against declared bounds or allowed category lists.","failureModes":["CSV exceeds 1000 rows — only up to 1000 rows validated","CSV string empty or malformed — parse error returned","Cell exceeds max_cell_length limit — cell rejected","Numeric value outside declared minimum/maximum — validation failure flagged","Category value not in allowed_categories list — validation error reported","Delimiter mismatch causing incorrect column parsing"],"whenToPreferThis":"Use this endpoint when you need fast, structured column-level statistics and schema validation specifically for token swap CSV data — especially when you need to enforce numeric bounds and category allowlists on swap fields like pool_address, input_tokens, and output_tokens. Prefer this over generic CSV tools when the data conforms to the token swap schema (swap_id, executed_on, pool_address, input_tokens, output_tokens) and you want a single-call, low-cost ($0.01 USDC) validation plus statistics report with no external enrichment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T00:51:48.498Z","isFirstParty":false,"canonicalSlug":"token-swap-imports-csv-column-statistics-11ecdea8"}