{"uid":"cap_muIcECslX1AyAlhonv7uf","slug":"trade-observations-duplicate-key-report-two-measure-correlation-2efc3045","name":"Trade Observations — Duplicate Key Report + Two-Measure Correlation","description":"Trade observations — Duplicate key report + Two-measure correlation: Duplicate key report + Two-measure correlation for supplied trade observations records (export_amount, import_amount). Up to 200 rows; 2 independent reports using shared local analytical engines. No live lookup, prediction, professional assessment or external action. 0.01 USDC includes 2 supplied-data reports for up to 200 rows.","url":"https://market.datapackvibe.com/x402/assistant-ib26-economics-06-066?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","region","date","export_amount","import_amount"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"region":{"type":"string","default":"","maxLength":80},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"export_amount":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"import_amount":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","region":"group-a","row_id":"row-1","export_amount":10,"import_amount":1},{"date":"2026-10-02","region":"group-b","row_id":"row-2","export_amount":20,"import_amount":2},{"date":"2026-10-03","region":"group-a","row_id":"row-3","export_amount":15,"import_amount":3},{"date":"2026-10-04","region":"group-b","row_id":"row-4","export_amount":30,"import_amount":4}],"maxItems":200,"minItems":1}}},"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_n9Jrk5PvlXQh1qxFkD1eO","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":"Analyzes up to 200 trade observation records to produce a duplicate key report and a Pearson/Spearman correlation analysis between export_amount and import_amount.","exampleAgentPrompt":"Can you run a duplicate key check and a correlation analysis on these trade records — I have up to 200 rows each with a row_id, region, date, export_amount, and import_amount — and tell me which row IDs repeat and how strongly exports and imports move together?","exampleUseCases":[{"title":"Trade data deduplication audit","prompt":"I've got a spreadsheet of trade observations with row IDs, regions, dates, export amounts, and import amounts — can you check it for any duplicate row keys and also tell me whether exports and imports are correlated? Here are the rows."},{"title":"Export-import correlation analysis","prompt":"I need to know how tightly export_amount and import_amount are correlated across my regional trade dataset — roughly 150 rows — and whether any row IDs are repeated. Can you run both reports?"},{"title":"Pre-pipeline data quality check","prompt":"Before I load this batch of trade observation records into our data pipeline, can you flag any duplicate row IDs and compute the correlation between export and import amounts so I know if the data is clean?"}],"resultDescription":"Returns two independent analytical reports: (1) a duplicate key report identifying any row_id values that appear more than once across the submitted rows, and (2) a two-measure correlation report quantifying the statistical relationship between export_amount and import_amount across all submitted rows. Both reports are computed locally against the supplied data with no external lookups.","failureModes":["Missing required fields (row_id, region, date, export_amount, import_amount) cause validation errors","Submitting more than 200 rows exceeds the maxItems limit and will be rejected","Invalid date format (non-YYYY-MM-DD) triggers a pattern validation failure","Payment of 0.01 USDC not provided or declined results in a 402 Payment Required response","Empty rows array (minItems:1 not met) causes a schema validation error","Null values in both numeric measures may degrade or prevent correlation computation"],"whenToPreferThis":"Choose this endpoint when you need simultaneous duplicate-key detection and bivariate correlation on trade observation data (export_amount + import_amount) within a single cheap call. It is ideal for pre-pipeline data quality checks on economics datasets up to 200 rows. Prefer it over general-purpose analytics tools when you want a low-cost ($0.01 USDC), schema-validated, no-external-lookup solution specifically for trade data with the row_id/region/date/export_amount/import_amount structure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-26T12:31:14.400Z","isFirstParty":false,"canonicalSlug":"trade-observations-duplicate-key-report-two-measure-correlation-2efc3045"}