{"openapi":"3.1.0","info":{"title":"Prediction Market Arbitrage Data API","description":"x402-gated global prediction-market arbitrage feed for autonomous trading agents.","version":"1.0.0"},"servers":[{"url":"https://predict.rdxdata.xyz","description":"Production (predict.rdxdata.xyz)"}],"paths":{"/":{"get":{"tags":["discovery"],"summary":"Openapi Root","operationId":"openapi_root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Openapi Root  Get"}}}}}}},"/openapi.json":{"get":{"tags":["discovery"],"summary":"Openapi Json","operationId":"openapi_json_openapi_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Openapi Json Openapi Json Get"}}}}}}},"/health":{"get":{"tags":["public"],"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Health Health Get"}}}}}}},"/v1/pricing":{"get":{"tags":["public"],"summary":"Pricing","operationId":"pricing_v1_pricing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Pricing V1 Pricing Get"}}}}}}},"/v1/markets/prediction-trends":{"get":{"tags":["feed"],"summary":"Global Prediction Feed","description":"Prediction Market Arbitrage Report for matched Polymarket and Kalshi events.","operationId":"prediction_market_arbitrage_report_v1_markets_prediction_trends_get","parameters":[{"name":"refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Refresh"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArbitrageReport"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"ArbitrageOpportunity":{"properties":{"event_title":{"type":"string","title":"Event Title"},"polymarket_yes":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Polymarket Yes"},"polymarket_no":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Polymarket No"},"kalshi_yes":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Kalshi Yes"},"kalshi_no":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Kalshi No"},"spread_pct":{"type":"number","title":"Spread Pct"},"confidence_score":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Confidence Score"},"match_rationale":{"type":"string","title":"Match Rationale","default":""},"venues":{"items":{"type":"string"},"type":"array","title":"Venues"},"timestamp":{"type":"string","title":"Timestamp"}},"type":"object","required":["event_title","polymarket_yes","polymarket_no","kalshi_yes","kalshi_no","spread_pct","confidence_score"],"title":"ArbitrageOpportunity"},"ArbitrageReport":{"properties":{"status":{"type":"string","title":"Status","default":"ok"},"generated_at":{"type":"string","title":"Generated At"},"model":{"type":"string","title":"Model","default":"deepseek-chat"},"source_count":{"type":"integer","title":"Source Count","default":0},"opportunities":{"items":{"$ref":"#/components/schemas/ArbitrageOpportunity"},"type":"array","title":"Opportunities"}},"type":"object","title":"ArbitrageReport"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"x-x402":{"amount_usdc":"0.000001","destination_wallet":"0xA0f3bab8f298766610005F2BCcDef6964b40b5e6","token":"USDC","network":"Base"},"x-agent-discovery":{"feed":"/v1/markets/prediction-trends","pricing":"/v1/pricing","payment_header":"X-402-Payment-Receipt"}}