{
  "openapi": "3.1.0",
  "info": {
    "title": "SML LIVEWIRE — Prediction Market Intelligence",
    "version": "1.0.0",
    "description": "Evidence-bounded real-time prediction-market intelligence for autonomous agents. Detect probability movement, velocity, acceleration and shocks; inspect retained history, resolution risk and related-market context; preserve source evidence; and pay only for an accepted intelligence packet.",
    "contact": {
      "name": "SCRIPTMASTERLABS",
      "email": "tim@scriptmasterlabs.com",
      "url": "https://scriptmasterlabs.com/livewire-prediction-market-intelligence"
    }
  },
  "servers": [
    {
      "url": "https://scriptmasterlabs.com",
      "description": "Canonical SCRIPTMASTERLABS front door"
    }
  ],
  "paths": {
    "/v1/livewire/prediction/intelligence": {
      "get": {
        "operationId": "getLivewirePredictionIntelligence",
        "summary": "Buy one evidence-bounded prediction-market intelligence packet",
        "description": "Inspect one current official Robinhood prediction-market event with retained probability replay, movement velocity, acceleration and shock state, resolution-risk completeness checks, related-market context, source evidence and an accepted-delivery receipt. Call without payment to obtain the fresh x402 terms. Invalid or not-ready inputs fail without charge. The service never executes trades or wagers and never spends automatically.",
        "tags": [
          "Prediction Markets",
          "Financial Analysis",
          "AI Agents",
          "x402"
        ],
        "parameters": [
          {
            "name": "event_url",
            "in": "query",
            "required": true,
            "description": "Current official Robinhood prediction-market event URL.",
            "schema": {
              "type": "string",
              "format": "uri"
            }
          },
          {
            "name": "history_points",
            "in": "query",
            "required": false,
            "description": "Number of retained observations requested.",
            "schema": {
              "type": "integer",
              "minimum": 60,
              "maximum": 720,
              "default": 240
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Accepted intelligence delivery, or an explicit no-charge invalid/not-ready response.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Fresh x402 v2 payment requirement for USDC on Base mainnet.",
            "headers": {
              "PAYMENT-REQUIRED": {
                "description": "Base64-encoded canonical x402 v2 payment challenge.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "x-payment-info": {
          "required": true,
          "protocol": "x402-v2",
          "runtime_authority": "Call this exact resource without payment and use its fresh PAYMENT-REQUIRED challenge for amount, network, asset and payTo.",
          "request_header": "PAYMENT-SIGNATURE",
          "response_header": "PAYMENT-RESPONSE",
          "auto_spend": false
        }
      }
    }
  }
}
