{"uid":"cap_RmfJeI7qruS9yxZmt8tEd","slug":"x402-factory-edge-signal-backtest-8bbfc631","name":"x402-factory Edge Signal Backtest","description":"Historical performance of the edge signal: hit rate, calibration, by hazard — Aggregates stored edge signals whose markets have resolved: how often the model beat the market (hit rate), average absolute-error improvement (edge captured), a model calibration curve, and per-hazard breakdowns. model_label is explicit about which model produced the signals.","url":"https://x402-factory.com/v1/edge/backtest","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"],"type":"string"},"queryParams":{"type":"object","required":[],"properties":{"window":{"type":"integer","default":90,"maximum":9007199254740991,"minimum":-9007199254740991},"min_divergence":{"type":"number","maximum":1,"minimum":0}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["n_signals","hit_rate","avg_edge_captured","calibration_curve","by_hazard","model_label"],"properties":{"hit_rate":{"type":"number","maximum":1,"minimum":0},"by_hazard":{"type":"array","items":{"type":"object","required":["hazard","n","hit_rate"],"properties":{"n":{"type":"integer","maximum":9007199254740991,"minimum":-9007199254740991},"hazard":{"type":"string"},"hit_rate":{"type":"number","maximum":1,"minimum":0}},"additionalProperties":false}},"n_signals":{"type":"integer","maximum":9007199254740991,"minimum":-9007199254740991},"model_label":{"type":"string"},"avg_edge_captured":{"type":"number"},"calibration_curve":{"type":"array","items":{"type":"object","required":["bucket","predicted","realized"],"properties":{"bucket":{"type":"string"},"realized":{"type":"number","maximum":1,"minimum":0},"predicted":{"type":"number","maximum":1,"minimum":0}},"additionalProperties":false}}},"additionalProperties":false},"meta":{"type":"object"}}}}}}},"responseSchema":{"type":"json","example":{"data":{"hit_rate":0.525,"by_hazard":[{"n":39,"hazard":"precip_above","hit_rate":0.487},{"n":31,"hazard":"temp_above","hit_rate":0.452},{"n":31,"hazard":"any_precip","hit_rate":0.548},{"n":30,"hazard":"wind_above","hit_rate":0.7},{"n":29,"hazard":"named_storm_landfall","hit_rate":0.448}],"n_signals":160,"model_label":"stub-model","avg_edge_captured":0.0044,"calibration_curve":[{"bucket":"0.0–0.1","realized":0,"predicted":0.068},{"bucket":"0.1–0.2","realized":0.333,"predicted":0.148},{"bucket":"0.2–0.3","realized":0.462,"predicted":0.254},{"bucket":"0.3–0.4","realized":0.316,"predicted":0.348},{"bucket":"0.4–0.5","realized":0.667,"predicted":0.431},{"bucket":"0.5–0.6","realized":0.474,"predicted":0.541},{"bucket":"0.6–0.7","realized":0.583,"predicted":0.644},{"bucket":"0.7–0.8","realized":0.737,"predicted":0.75},{"bucket":"0.8–0.9","realized":0.889,"predicted":0.842},{"bucket":"0.9–1.0","realized":0.75,"predicted":0.953}]},"meta":{"docs":"https://x402-factory.com/docs/edge.backtest","sources":["stub-model","kalshi","polymarket"],"version":"1.0.0","endpoint":"/v1/edge/backtest","data_mode":"live","freshness":"daily","request_id":"req_00000000","generated_at":"2026-08-21T03:58:57.921Z"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_y5eWOq-uhS5c5UmGlKj4O","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns historical performance metrics for the edge signal model: hit rate, average edge captured, calibration curve, and per-hazard breakdowns over resolved markets.","exampleAgentPrompt":"Show me the backtest performance of the edge signal model over the last 90 days — I want to see the hit rate, average edge captured, and the calibration curve broken down by hazard.","exampleUseCases":null,"resultDescription":"Returns a JSON object with: total number of resolved signals, overall hit rate (0-1), average absolute-error improvement (avg_edge_captured), an array of calibration curve buckets (predicted vs realized probabilities), per-hazard breakdown (hazard name, count, hit rate), and the model_label identifying which model produced the signals.","failureModes":["Invalid window parameter (out of integer range) returns validation error","min_divergence outside 0-1 range returns validation error","No resolved signals in the requested window returns empty or zero-count result","Payment failure (x402 protocol) blocks access if USDC payment not processed","Service unavailable returns 5xx error"],"whenToPreferThis":"Use this endpoint when you need to evaluate the historical accuracy and calibration of the edge signal model over resolved prediction markets — especially for model validation, backtesting a trading strategy, or auditing whether the model's predicted probabilities match realized outcomes. Prefer this over live signal endpoints when the goal is retrospective performance analysis rather than actionable current signals.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:50:29.125Z","isFirstParty":false}