{
  "openapi": "3.0.1",
  "info": {
    "title": "Yahoo Finance Options Chain Scraper: Greeks, IV & Insider",
    "description": "Scrape US options chains (Cboe & Yahoo Finance options chain scraper) with vectorized Black-Scholes Greeks, Implied Volatility (IV), POP, Max Pain & unusual Vol/OI flow, enriched with live SEC EDGAR Form 4 executive insider buying & selling signals.",
    "version": "1.0",
    "x-build-id": "4sXFVjv6xi3x4Mn5b"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zenonnnnnn~us-options-greeks-insider/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zenonnnnnn-us-options-greeks-insider",
        "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/zenonnnnnn~us-options-greeks-insider/runs": {
      "post": {
        "operationId": "runs-sync-zenonnnnnn-us-options-greeks-insider",
        "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/zenonnnnnn~us-options-greeks-insider/run-sync": {
      "post": {
        "operationId": "run-sync-zenonnnnnn-us-options-greeks-insider",
        "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",
        "required": [
          "tickers"
        ],
        "properties": {
          "tickers": {
            "title": "Ticker Symbols",
            "type": "array",
            "description": "List of US stock, ETF, or Cboe index tickers (e.g., NVDA, AAPL, TSLA, SPY, SPX, VIX).",
            "default": [
              "NVDA",
              "AAPL"
            ],
            "items": {
              "type": "string"
            }
          },
          "outputMode": {
            "title": "Output & Billing Mode",
            "enum": [
              "option_contracts",
              "ticker_summaries"
            ],
            "type": "string",
            "description": "Choose 'option_contracts' to emit filtered option contracts to Dataset (charged per 'option-contract') while also saving TICKER_SUMMARIES to Key-Value Store, or 'ticker_summaries' to emit one aggregated row per ticker to Dataset (charged per 'ticker-summary').",
            "default": "option_contracts"
          },
          "optionType": {
            "title": "Option Type Filter",
            "enum": [
              "ALL",
              "CALL",
              "PUT"
            ],
            "type": "string",
            "description": "Filter contracts by CALL, PUT, or ALL before Pay-Per-Event billing.",
            "default": "ALL"
          },
          "minDte": {
            "title": "Minimum DTE (Days to Expiration)",
            "minimum": 0,
            "maximum": 1095,
            "type": "integer",
            "description": "Minimum calendar days until expiration. Set to 0 to include 0DTE contracts.",
            "default": 1
          },
          "maxDte": {
            "title": "Maximum DTE (Days to Expiration)",
            "minimum": 0,
            "maximum": 1095,
            "type": "integer",
            "description": "Maximum calendar days until expiration.",
            "default": 45
          },
          "moneynessRangePct": {
            "title": "Max Moneyness Distance (±%)",
            "minimum": 0.5,
            "maximum": 500,
            "type": "number",
            "description": "Keep only strikes within ±N% of the underlying spot price (|strike - spot| / spot * 100 <= N). Default 20% strips illiquid deep OTM/ITM contracts before billing.",
            "default": 20
          },
          "minVolume": {
            "title": "Minimum Contract Volume",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum daily trading volume required per option contract (applied pre-billing).",
            "default": 10
          },
          "minOpenInterest": {
            "title": "Minimum Open Interest",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum open interest required per option contract (applied pre-billing).",
            "default": 50
          },
          "minVolOiRatio": {
            "title": "Minimum Volume / OI Ratio (Unusual Flow Filter)",
            "minimum": 0,
            "type": "number",
            "description": "Pre-billing unusual options activity filter. Set > 0 (e.g., 1.25 or 2.0) to return ONLY contracts where daily Volume exceeds Open Interest by that multiple.",
            "default": 0
          },
          "unusualVolOiThreshold": {
            "title": "Unusual Activity Flag Threshold (Vol/OI)",
            "minimum": 0.1,
            "type": "number",
            "description": "Contracts with volOiRatio >= this threshold are tagged isUnusualActivity=true and evaluated for bullish/bearish SEC Form 4 insider resonance.",
            "default": 1.25
          },
          "popPerspective": {
            "title": "Probability of Profit (POP) Perspective",
            "enum": [
              "BUYER",
              "SELLER"
            ],
            "type": "string",
            "description": "Calculate lognormal Probability of Profit at expiration from either the option BUYER (long) or option SELLER (short) perspective.",
            "default": "BUYER"
          },
          "riskFreeRatePct": {
            "title": "Risk-Free Interest Rate (%)",
            "minimum": 0,
            "maximum": 25,
            "type": "number",
            "description": "Annualized US Treasury risk-free rate (%) for Black-Scholes-Merton IV inversion, Greeks backfill, and POP calculation.",
            "default": 4.35
          },
          "dividendYieldPct": {
            "title": "Continuous Dividend Yield (%)",
            "minimum": 0,
            "maximum": 25,
            "type": "number",
            "description": "Annualized continuous dividend yield (%) used in Black-Scholes-Merton pricing.",
            "default": 0
          },
          "includeSecInsider": {
            "title": "Include SEC EDGAR Form 4 Insider Scanner",
            "type": "boolean",
            "description": "Query official SEC EDGAR submissions & Form 4 XML ownership filings to attach 30d/90d executive insider buy/sell metrics and resonance signals.",
            "default": true
          },
          "secMaxForm4XmlParse": {
            "title": "Max Recent Form 4 XMLs to Parse per Ticker",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Number of latest Form 4 XML filings per company to parse for exact Acquired (A) / Disposed (D) and Open-Market Purchase (P) / Sale (S) share counts.",
            "default": 5
          },
          "maxContractsPerTicker": {
            "title": "Max Contracts per Ticker",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Cap filtered contracts emitted per symbol (ranked by notionalVolumeUsd descending so largest institutional flows are prioritized).",
            "default": 250
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}