{
  "openapi": "3.0.1",
  "info": {
    "title": "Polymarket, Kalshi & Manifold Odds API + Arbitrage Scanner",
    "description": "Real-time prediction market odds, bid/ask spreads, 24h volume & liquidity across Polymarket, Kalshi & Manifold via direct public APIs. 256 MB RAM, MCP ready.",
    "version": "0.0",
    "x-build-id": "Wn0lKvvKYp1AiXSJo"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/topaz_anemone~prediction-markets-mcp/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-topaz_anemone-prediction-markets-mcp",
        "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/topaz_anemone~prediction-markets-mcp/runs": {
      "post": {
        "operationId": "runs-sync-topaz_anemone-prediction-markets-mcp",
        "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/topaz_anemone~prediction-markets-mcp/run-sync": {
      "post": {
        "operationId": "run-sync-topaz_anemone-prediction-markets-mcp",
        "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": {
          "query": {
            "title": "Topic or keyword",
            "type": "string",
            "description": "Topic to search on every platform, e.g. 'Fed', 'CPI', 'recession', 'Bitcoin', 'election', 'AI'. Leave empty to get the biggest markets (quotes mode) or to scan a built-in list of liquid topics (discrepancies mode)."
          },
          "outputMode": {
            "title": "Output",
            "enum": [
              "quotes",
              "discrepancies"
            ],
            "type": "string",
            "description": "'Quotes': one row per market with probability, bid/ask, volume, liquidity and the matching markets on other platforms. 'Discrepancies': one row per cross-platform pair of the same event, ranked by executable arbitrage edge, then by probability gap.",
            "default": "quotes"
          },
          "platforms": {
            "title": "Platforms",
            "type": "array",
            "description": "Platforms to query in parallel.",
            "items": {
              "type": "string",
              "enum": [
                "polymarket",
                "kalshi",
                "manifold"
              ],
              "enumTitles": [
                "Polymarket (USDC order book)",
                "Kalshi (CFTC-regulated, USD)",
                "Manifold (play money)"
              ]
            },
            "default": [
              "polymarket",
              "kalshi",
              "manifold"
            ]
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum number of rows returned (and charged), 1-200.",
            "default": 30
          },
          "sortBy": {
            "title": "Sort quotes by",
            "enum": [
              "volume_24h",
              "volume_total",
              "liquidity",
              "closing_soon"
            ],
            "type": "string",
            "description": "Ordering of quotes (discrepancies are always ranked by edge and confidence).",
            "default": "volume_24h"
          },
          "minVolumeUsd": {
            "title": "Minimum total volume",
            "minimum": 0,
            "type": "number",
            "description": "Drop thinly traded markets below this total volume (USD for Polymarket/Kalshi, MANA for Manifold).",
            "default": 0
          },
          "minLiquidityUsd": {
            "title": "Minimum liquidity",
            "minimum": 0,
            "type": "number",
            "description": "Drop markets whose current liquidity (or open interest) is below this value.",
            "default": 0
          },
          "excludeParlays": {
            "title": "Exclude Kalshi multi-leg parlays",
            "type": "boolean",
            "description": "Skip Kalshi multivariate sports parlays (KXMVE tickers) so results focus on single-event markets.",
            "default": true
          },
          "matchAcrossPlatforms": {
            "title": "Match the same event across platforms",
            "type": "boolean",
            "description": "In quotes mode, adds 'crossPlatform' (the same event on the other platforms) and 'maxProbabilityGap' to every quote. Always on in discrepancies mode.",
            "default": true
          },
          "minMatchScore": {
            "title": "Minimum match score",
            "minimum": 0.5,
            "maximum": 1,
            "type": "number",
            "description": "Similarity required to pair two markets (0.5-1.0). Pairs at 0.8+ without caveats are 'high' confidence; only those can be flagged as arbitrage.",
            "default": 0.6
          },
          "minProbabilityGap": {
            "title": "Minimum probability gap (discrepancies)",
            "minimum": 0,
            "maximum": 1,
            "type": "number",
            "description": "Only return pairs whose implied probabilities differ by at least this much (0.02 = 2 points). Arbitrage candidates are always returned.",
            "default": 0.02
          },
          "scanTopics": {
            "title": "Topics for a market-wide scan",
            "type": "array",
            "description": "Used in discrepancies mode when the keyword is empty. Each topic is searched on every platform and the results are matched together.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}