{"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"}}}}},"security":[{"SkyfireToken":[]}],"x-skyfire-token-type":["pay","kya-pay"]}}},"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"},"is_arbitrage":{"type":"boolean","title":"Is Arbitrage","default":true},"buy_yes_venue":{"type":"string","title":"Buy Yes Venue","default":""},"buy_no_venue":{"type":"string","title":"Buy No Venue","default":""},"total_cost":{"type":"number","title":"Total Cost","default":0.0},"roi_pct":{"type":"number","title":"Roi Pct","default":0.0},"match_confidence":{"type":"number","title":"Match Confidence","default":0.0},"match_method":{"type":"string","title":"Match Method","default":"llm"},"polymarket_title":{"type":"string","title":"Polymarket Title","default":""},"kalshi_title":{"type":"string","title":"Kalshi Title","default":""},"polymarket_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Polymarket Url"},"kalshi_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kalshi Url"},"polymarket_liquidity":{"type":"number","title":"Polymarket Liquidity","default":0.0},"kalshi_liquidity":{"type":"number","title":"Kalshi Liquidity","default":0.0},"polymarket_volume":{"type":"number","title":"Polymarket Volume","default":0.0},"kalshi_volume":{"type":"number","title":"Kalshi Volume","default":0.0},"polymarket_close_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Polymarket Close Time"},"kalshi_close_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kalshi Close Time"},"close_time_gap_hours":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Close Time Gap Hours"},"kalshi_liquidity_source":{"type":"string","title":"Kalshi Liquidity Source","default":""},"kalshi_leg_size_contracts":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Kalshi Leg Size Contracts"},"kalshi_leg_size_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Kalshi Leg Size Usd"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"}},"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":"heuristic"},"source_count":{"type":"integer","title":"Source Count","default":0},"quote_count":{"type":"integer","title":"Quote Count","default":0},"venue_counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Venue Counts"},"opportunities":{"items":{"$ref":"#/components/schemas/ArbitrageOpportunity"},"type":"array","title":"Opportunities"},"matched_pairs":{"items":{"$ref":"#/components/schemas/ArbitrageOpportunity"},"type":"array","title":"Matched Pairs"},"matching":{"additionalProperties":true,"type":"object","title":"Matching"}},"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"}},"securitySchemes":{"SkyfireToken":{"type":"apiKey","in":"header","name":"kyapay-token","description":"Skyfire token header. This service accepts pay or kya-pay tokens.","x-skyfire-token-type":["pay","kya-pay"]}}},"x-x402":{"x402Version":2,"error":"Payment required","resource":{"url":"https://predict.rdxdata.xyz/v1/markets/prediction-trends","description":"Prediction Market Arbitrage Report for matched Polymarket and Kalshi events.","mimeType":"application/json"},"accepts":[{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bda02913","amount":"100000","payTo":"0xA0f3bab8f298766610005F2BCcDef6964b40b5e6","maxTimeoutSeconds":30,"extra":{"name":"USD Coin","version":"2"}}],"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"HEAD","queryParams":{"refresh":false}},"output":{"type":"json","example":{"status":"ok","generated_at":"2026-10-27T00:00:00Z","model":"deepseek-chat","source_count":2,"quote_count":2,"opportunities":[{"event_title":"Will Bitcoin hit $100k in 2026?","polymarket_yes":0.65,"polymarket_no":0.35,"kalshi_yes":0.62,"kalshi_no":0.38,"spread_pct":3.0,"confidence_score":0.85,"match_rationale":"Slight premium on Polymarket due to higher retail volume.","venues":["polymarket","kalshi"],"timestamp":"2026-10-27T00:00:00Z"}]}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["HEAD"]},"queryParams":{"type":"object","properties":{"refresh":{"type":"boolean","description":"Force refresh the prediction scraping pipeline"}}}},"required":["type","method"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"status":{"type":"string"},"generated_at":{"type":"string"},"model":{"type":"string"},"source_count":{"type":"integer"},"quote_count":{"type":"integer"},"opportunities":{"type":"array","items":{"type":"object","properties":{"event_title":{"type":"string"},"polymarket_yes":{"type":"number"},"polymarket_no":{"type":"number"},"kalshi_yes":{"type":"number"},"kalshi_no":{"type":"number"},"spread_pct":{"type":"number"},"confidence_score":{"type":"number"},"match_rationale":{"type":"string"},"venues":{"type":"array","items":{"type":"string"}},"timestamp":{"type":"string"}}}}},"required":["status","generated_at","opportunities"]}},"required":["type"]}},"required":["input"]}}}},"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"HEAD","queryParams":{"refresh":false}},"output":{"type":"json","example":{"status":"ok","generated_at":"2026-10-27T00:00:00Z","model":"deepseek-chat","source_count":2,"quote_count":2,"opportunities":[{"event_title":"Will Bitcoin hit $100k in 2026?","polymarket_yes":0.65,"polymarket_no":0.35,"kalshi_yes":0.62,"kalshi_no":0.38,"spread_pct":3.0,"confidence_score":0.85,"match_rationale":"Slight premium on Polymarket due to higher retail volume.","venues":["polymarket","kalshi"],"timestamp":"2026-10-27T00:00:00Z"}]}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["HEAD"]},"queryParams":{"type":"object","properties":{"refresh":{"type":"boolean","description":"Force refresh the prediction scraping pipeline"}}}},"required":["type","method"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"status":{"type":"string"},"generated_at":{"type":"string"},"model":{"type":"string"},"source_count":{"type":"integer"},"quote_count":{"type":"integer"},"opportunities":{"type":"array","items":{"type":"object","properties":{"event_title":{"type":"string"},"polymarket_yes":{"type":"number"},"polymarket_no":{"type":"number"},"kalshi_yes":{"type":"number"},"kalshi_no":{"type":"number"},"spread_pct":{"type":"number"},"confidence_score":{"type":"number"},"match_rationale":{"type":"string"},"venues":{"type":"array","items":{"type":"string"}},"timestamp":{"type":"string"}}}}},"required":["status","generated_at","opportunities"]}},"required":["type"]}},"required":["input"]}}},"x-agent-discovery":{"feed":"/v1/markets/prediction-trends","pricing":"/v1/pricing","payment_header":"PAYMENT-SIGNATURE"},"x-skyfire-token-type":["pay","kya-pay"]}