{
  "openapi": "3.0.1",
  "info": {
    "title": "Polymarket Real-Arb Scanner",
    "description": "Guaranteed, executable arbitrage on Polymarket, priced off real CLOB order-book depth at your stake, fee-adjusted per category. No phantom edges.",
    "version": "0.1",
    "x-build-id": "f4807wtQV6i8tPepX"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ebag73~polymarket-arb-scanner/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ebag73-polymarket-arb-scanner",
        "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/ebag73~polymarket-arb-scanner/runs": {
      "post": {
        "operationId": "runs-sync-ebag73-polymarket-arb-scanner",
        "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/ebag73~polymarket-arb-scanner/run-sync": {
      "post": {
        "operationId": "run-sync-ebag73-polymarket-arb-scanner",
        "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": {
          "stakeUsd": {
            "title": "Stake per opportunity (USD)",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Capital you would deploy into a single arb. Every executable price is a VWAP walked across the real order book to fill this much — so the reported edge is what you'd actually get at this size, not at the untradeable top-of-book tick.",
            "default": 100
          },
          "minNetEdgePct": {
            "title": "Minimum net edge (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only return arbs whose profit AFTER fees, as a percent of capital deployed, is at least this. 1 = a guaranteed 1% return. Raise it to cut noise.",
            "default": 1
          },
          "categories": {
            "title": "Categories to scan",
            "type": "array",
            "description": "Restrict to these market categories (e.g. sports, crypto, politics, finance, economics, culture, tech, mentions). Leave empty to scan all. Geopolitics markets are fee-free and always eligible.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minVolume": {
            "title": "Minimum market volume (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip markets below this lifetime volume. Higher = fewer, more-liquid markets (less depth risk).",
            "default": 1000
          },
          "maxResults": {
            "title": "Max arbs to return",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Stop after emitting this many opportunities.",
            "default": 200
          },
          "includeWeatherEvents": {
            "title": "Include daily-temperature (weather) events",
            "type": "boolean",
            "description": "Off by default. Weather temperature markets have thin books and a specialized resolution structure; a sum-of-legs arb on them reconstructs a separate signal and rarely clears the depth filter anyway. Turn on only if you specifically want them.",
            "default": false
          },
          "maxMarketsScanned": {
            "title": "Max markets to discover (cost guard)",
            "minimum": 100,
            "maximum": 20000,
            "type": "integer",
            "description": "Upper bound on Gamma markets pulled (ordered by volume, highest first). Bounds run time and cost.",
            "default": 2000
          },
          "maxBooksFetched": {
            "title": "Max order books to fetch (cost guard)",
            "minimum": 10,
            "maximum": 5000,
            "type": "integer",
            "description": "Upper bound on CLOB order-book requests. Only groups that pass the cheap Gamma price screen consume this budget.",
            "default": 400
          },
          "minGrossScreenPct": {
            "title": "Screen threshold (%)",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "How promising a group must look on free Gamma touch prices before spending order-book requests to confirm it. Lower catches more but costs more.",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}