{
  "openapi": "3.0.1",
  "info": {
    "title": "Polymarket + Kalshi Arbitrage Opportunity Radar",
    "description": "Find equivalent Polymarket and Kalshi contracts, reject false arbitrage, and calculate fee- and depth-aware executable cross-market opportunities.",
    "version": "0.2",
    "x-build-id": "EDPWBim9n36bPMaoF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nexascout~prediction-market-opportunity-risk-radar/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nexascout-prediction-market-opportunity-risk-radar",
        "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/nexascout~prediction-market-opportunity-risk-radar/runs": {
      "post": {
        "operationId": "runs-sync-nexascout-prediction-market-opportunity-risk-radar",
        "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/nexascout~prediction-market-opportunity-risk-radar/run-sync": {
      "post": {
        "operationId": "run-sync-nexascout-prediction-market-opportunity-risk-radar",
        "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": {
          "searchQueries": {
            "title": "Topics, teams, assets, or keywords",
            "type": "array",
            "description": "Optional focused topics such as NFL, Yankees, Fed, CPI, unemployment, or Bitcoin. Team and league aliases are normalized before matching.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "verticals": {
            "title": "Market verticals",
            "type": "array",
            "description": "Limit discovery to selected market verticals. Sports economics are precision-first and only full-game winner/moneyline contracts can pass the execution gate.",
            "items": {
              "type": "string",
              "enum": [
                "SPORTS",
                "MACRO",
                "CRYPTO",
                "WEATHER",
                "POLITICS",
                "GENERAL"
              ],
              "enumTitles": [
                "Sports",
                "Macro / economic releases",
                "Crypto",
                "Weather",
                "Politics / government",
                "General fallback"
              ]
            },
            "default": [
              "SPORTS",
              "MACRO",
              "CRYPTO",
              "WEATHER",
              "POLITICS",
              "GENERAL"
            ]
          },
          "maxMarketsPerPlatform": {
            "title": "Markets per platform",
            "minimum": 50,
            "maximum": 2000,
            "type": "integer",
            "description": "Maximum open markets loaded from each platform before local query filtering and canonical grouping.",
            "default": 1000
          },
          "maxMatches": {
            "title": "Maximum output rows",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum dataset rows returned and billed. Lower this value for cheaper exploratory runs.",
            "default": 10
          },
          "assumedTradeSize": {
            "title": "Target contracts",
            "minimum": 1,
            "maximum": 10000,
            "type": "number",
            "description": "Maximum contracts used for depth-aware executable economics.",
            "default": 25
          },
          "minNetEdgePct": {
            "title": "Minimum net edge (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "Minimum estimated return after known fees for ACTIONABLE.",
            "default": 1
          },
          "minExecutableContracts": {
            "title": "Minimum executable contracts",
            "minimum": 1,
            "maximum": 10000,
            "type": "number",
            "description": "Minimum contracts that must be fillable from both books for ACTIONABLE.",
            "default": 5
          },
          "candidateMatchConfidence": {
            "title": "Candidate confidence threshold",
            "minimum": 0.3,
            "maximum": 1,
            "type": "number",
            "description": "Minimum semantic match confidence for a pair to reach the resolution-equivalence gate.",
            "default": 0.72
          },
          "actionableMatchConfidence": {
            "title": "Actionable confidence threshold",
            "minimum": 0.5,
            "maximum": 1,
            "type": "number",
            "description": "A pair below this confidence can never be ACTIONABLE.",
            "default": 0.9
          },
          "maxResolutionRiskScore": {
            "title": "Maximum resolution risk",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Pairs above this 0-100 risk score cannot be ACTIONABLE.",
            "default": 25
          },
          "maxEventDateDifferenceHours": {
            "title": "Event time tolerance (hours)",
            "minimum": 0,
            "maximum": 168,
            "type": "integer",
            "description": "Maximum allowed event-time difference for time-specific markets. Sports event dates are matched more strictly when both dates are known.",
            "default": 12
          },
          "kalshiFeeCoefficient": {
            "title": "Kalshi taker fee coefficient",
            "minimum": 0,
            "maximum": 1,
            "type": "number",
            "description": "Default Kalshi event-contract taker fee coefficient used when no market-specific exception is detected.",
            "default": 0.07
          },
          "polymarketFeeMode": {
            "title": "Polymarket fee handling",
            "enum": [
              "AUTO",
              "OVERRIDE_BPS",
              "ASSUME_ZERO"
            ],
            "type": "string",
            "description": "AUTO uses the current Polymarket category taker-fee curve when the normalized category/vertical is known, treats explicitly fee-free markets as zero-fee, and leaves unfamiliar fee categories unknown. OVERRIDE_BPS and ASSUME_ZERO remain explicit research overrides.",
            "default": "AUTO"
          },
          "polymarketFeeBps": {
            "title": "Polymarket fee override (bps)",
            "minimum": 0,
            "maximum": 10000,
            "type": "number",
            "description": "Used only when Polymarket fee handling is OVERRIDE_BPS.",
            "default": 0
          },
          "requireKnownFeesForActionable": {
            "title": "Require known fees for ACTIONABLE",
            "type": "boolean",
            "description": "Recommended. If enabled, a fee-enabled market whose applicable fee category cannot be established is WATCH/REJECT rather than ACTIONABLE.",
            "default": true
          },
          "includeRejected": {
            "title": "Include rejected pairs",
            "type": "boolean",
            "description": "Include pairs rejected by contract-scope, event, threshold, or resolution checks. Useful for audits; leave disabled for normal opportunity scans.",
            "default": false
          },
          "compareWithPreviousRun": {
            "title": "Track changes",
            "type": "boolean",
            "description": "Persist prior matched opportunities and label rows NEW, CHANGED, or UNCHANGED. Enable for scheduled monitoring.",
            "default": false
          },
          "historyKey": {
            "title": "History key",
            "type": "string",
            "description": "Stable monitoring key. Runs using the same key are compared with one another when Track changes is enabled.",
            "default": "default"
          },
          "maxConcurrency": {
            "title": "Order-book concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Concurrent quote requests after semantic and resolution gates pass.",
            "default": 6
          },
          "sourceRetries": {
            "title": "Source retry attempts",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Retries for public market-data endpoints, including HTTP 429 backoff and Kalshi host fallback.",
            "default": 4
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}