{
  "openapi": "3.0.1",
  "info": {
    "title": "Polymarket & Kalshi Odds, Orderbook & Arbitrage Intel",
    "description": "Real-time Polymarket & Kalshi odds, live L2 orderbook depth, $1k VWAP slippage, fee-adjusted cross-venue arbitrage signals, intra-event mispricings, and near-expiry prediction bonds. Zero CAPTCHA, 100% public APIs, AI Agent & MCP ready.",
    "version": "1.0",
    "x-build-id": "ofkqdNODYg36matkH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/conscious_chuckwalla~prediction-market-arb-intel/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-conscious_chuckwalla-prediction-market-arb-intel",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/conscious_chuckwalla~prediction-market-arb-intel/runs": {
      "post": {
        "operationId": "runs-sync-conscious_chuckwalla-prediction-market-arb-intel",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/conscious_chuckwalla~prediction-market-arb-intel/run-sync": {
      "post": {
        "operationId": "run-sync-conscious_chuckwalla-prediction-market-arb-intel",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "mode": {
            "title": "Intelligence Mode",
            "enum": [
              "all",
              "arbitrage",
              "markets",
              "yield_bonds"
            ],
            "type": "string",
            "description": "Select which intelligence records to emit to the dataset. 'all' emits cross-venue arbitrage pairs, intra-event mispricings, and top unified markets. 'arbitrage' focuses solely on cross-venue & intra-event alpha signals. 'markets' outputs normalized odds & orderbooks. 'yield_bonds' scans near-expiry high-probability contracts with attractive annualized yield.",
            "default": "all"
          },
          "venues": {
            "title": "Prediction Market Venues",
            "type": "array",
            "description": "Exchanges to query in real time via their official public read-only APIs. Include both for cross-venue arbitrage detection.",
            "items": {
              "type": "string"
            },
            "default": [
              "polymarket",
              "kalshi"
            ]
          },
          "searchQuery": {
            "title": "Topic / Keyword Filter (Optional)",
            "type": "string",
            "description": "Case-insensitive keyword filter applied to event titles, market questions, categories, and tags (e.g., 'Fed', 'Bitcoin', 'NBA', 'French', 'CPI', 'NVIDIA'). Leave blank to scan all top active markets.",
            "default": ""
          },
          "categories": {
            "title": "Category Filter (Optional)",
            "type": "array",
            "description": "Optional list of categories or tags to keep (e.g., 'Economics', 'Politics', 'Crypto', 'Sports', 'Tech', 'Science'). Leave empty to include all categories.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "maxResults": {
            "title": "Maximum Dataset Output Records",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Hard cap on total records pushed to the dataset (protects user budget under Pay-Per-Event pricing).",
            "default": 100
          },
          "polymarketEventLimit": {
            "title": "Polymarket Top Events to Scan",
            "minimum": 5,
            "maximum": 300,
            "type": "integer",
            "description": "Number of highest 24h-volume active Polymarket events to ingest from the Gamma API.",
            "default": 60
          },
          "kalshiSeriesTickers": {
            "title": "Kalshi Flagship Series Tickers",
            "type": "array",
            "description": "High-liquidity Kalshi series tickers to ingest alongside general open-market discovery. Default set covers Fed decisions, CPI, Recession, US/French elections, NBA/NFL/UCL/NHL, Crypto, and AI.",
            "items": {
              "type": "string"
            },
            "default": [
              "KXFEDDECISION",
              "KXFED",
              "KXCPI",
              "KXRECSSNBER",
              "KXPAYROLLS",
              "KXGDP",
              "KXPRESNOMD",
              "KXPRESNOMR",
              "KXPRESPERSON",
              "KXFRENCHPRES",
              "KXNEXTSPEAKER",
              "KXSB",
              "KXNBA",
              "KXUCL",
              "KXNHL",
              "KXMLB",
              "KXBTCMINY",
              "KXBTCMAXY",
              "KXBTC",
              "KXETH",
              "KXAGICO",
              "KXTOPMODEL"
            ]
          },
          "kalshiGeneralMarketPages": {
            "title": "Kalshi General Discovery Pages",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Additional pages (200 open non-parlay markets per page) fetched from Kalshi's general /markets endpoint to catch trending non-series contracts.",
            "default": 2
          },
          "minVolume24h": {
            "title": "Minimum 24h Volume (USD / Contracts)",
            "minimum": 0,
            "type": "number",
            "description": "Filter out illiquid markets below this 24-hour trading volume threshold.",
            "default": 500
          },
          "minYesProb": {
            "title": "Minimum YES Implied Probability",
            "minimum": 0,
            "maximum": 1,
            "type": "number",
            "description": "Keep markets whose YES mid-price is at least this value (0.00 to 1.00).",
            "default": 0
          },
          "maxYesProb": {
            "title": "Maximum YES Implied Probability",
            "minimum": 0,
            "maximum": 1,
            "type": "number",
            "description": "Keep markets whose YES mid-price is at most this value (0.00 to 1.00).",
            "default": 1
          },
          "minDivergenceBps": {
            "title": "Minimum Cross-Venue Divergence (bps)",
            "minimum": 0,
            "maximum": 5000,
            "type": "number",
            "description": "Emit cross-venue pairs whenever either gross arbitrage edge > 0 OR absolute YES mid-price divergence is at least this many basis points (100 bps = 1.00%).",
            "default": 50
          },
          "minMatchConfidence": {
            "title": "Minimum Cross-Venue Match Confidence",
            "minimum": 0.5,
            "maximum": 1,
            "type": "number",
            "description": "Strict semantic + structural similarity floor (0.50–1.00) required before pairing a Polymarket contract with a Kalshi contract.",
            "default": 0.8
          },
          "includeOrderbookDepth": {
            "title": "Enrich Live Orderbook Depth & $1k VWAP Slippage",
            "type": "boolean",
            "description": "Fetches live CLOB orderbooks (Polymarket) and Level-2 orderbooks (Kalshi) for top markets and arbitrage legs to compute top-5 depth, 2% depth, book imbalance, and exact $1,000 fill slippage.",
            "default": true
          },
          "maxOrderbookEnrichments": {
            "title": "Max Live Orderbook Lookups",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Upper bound on live L2 orderbook API requests per run to keep latency fast and Pay-Per-Event costs predictable.",
            "default": 20
          },
          "yieldMinProb": {
            "title": "Yield Bond Min Implied Probability",
            "minimum": 0.5,
            "maximum": 0.99,
            "type": "number",
            "description": "Used in 'yield_bonds' mode: minimum side ask probability (e.g. 0.85 = 85% conviction).",
            "default": 0.85
          },
          "yieldMaxDaysToExpiry": {
            "title": "Yield Bond Max Days to Expiry",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Used in 'yield_bonds' mode: maximum days until market close/resolution.",
            "default": 90
          },
          "sortBy": {
            "title": "Market Sort Order",
            "enum": [
              "volume_24h",
              "volume_total",
              "spread_bps",
              "days_to_expiry"
            ],
            "type": "string",
            "description": "Sort criterion for emitted market records.",
            "default": "volume_24h"
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}