{
  "data": {
    "id": "R3B7rqC3nxBgTaAzU",
    "actId": "XynHlLQeGPlr5Ja7Y",
    "userId": "4BicJNfmk8uEe3GtT",
    "startedAt": "2026-12-05T16:41:26.982Z",
    "finishedAt": "2026-12-05T16:41:31.413Z",
    "status": "SUCCEEDED",
    "meta": {
      "origin": "CI"
    },
    "inputSchema": "{\n  \"title\": \"Congress Stock Trades & Financial Disclosures Input\",\n  \"description\": \"Read House Clerk and Senate eFD stock-trade and financial-disclosure filings without credentials.\",\n  \"type\": \"object\",\n  \"schemaVersion\": 1,\n  \"properties\": {\n    \"mode\": {\n      \"title\": \"Mode\",\n      \"type\": \"string\",\n      \"description\": \"What to collect. housePtr parses House periodic transaction reports, senatePtr parses Senate eFD PTRs, houseAnnual returns annual filings and their Schedule B trades, senateAnnual returns annual filings with Part 3 holdings and Part 4b trades, houseFilings returns the House filing index, tickerSearch scans both chambers for one or more tickers, and members searches the member directory.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"housePtr\",\n        \"senatePtr\",\n        \"houseAnnual\",\n        \"senateAnnual\",\n        \"houseFilings\",\n        \"tickerSearch\",\n        \"members\"\n      ],\n      \"enumTitles\": [\n        \"House PTR trades\",\n        \"Senate PTR trades\",\n        \"House annual + Schedule B trades\",\n        \"Senate annual reports\",\n        \"House filing index\",\n        \"Ticker search (both chambers)\",\n        \"Member directory\"\n      ],\n      \"default\": \"housePtr\",\n      \"prefill\": \"housePtr\",\n      \"sectionCaption\": \"Mode and scope\",\n      \"sectionDescription\": \"Choose the filing type and the chamber scope.\"\n    },\n    \"chamber\": {\n      \"title\": \"Chamber scope\",\n      \"type\": \"string\",\n      \"description\": \"Used by tickerSearch and members. PTR and annual modes imply their chamber.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"both\",\n        \"house\",\n        \"senate\"\n      ],\n      \"enumTitles\": [\n        \"Both chambers\",\n        \"House\",\n        \"Senate\"\n      ],\n      \"default\": \"both\",\n      \"prefill\": \"both\"\n    },\n    \"memberName\": {\n      \"title\": \"Member name\",\n      \"type\": \"string\",\n      \"description\": \"Case-insensitive text match on the member's name (e.g. `Pelosi`, `Nancy Pelosi`). Empty = all members.\",\n      \"editor\": \"textfield\",\n      \"default\": \"\",\n      \"prefill\": \"Allen\"\n    },\n    \"state\": {\n      \"title\": \"State\",\n      \"type\": \"string\",\n      \"description\": \"Two-letter state or territory code. Empty = all states.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"all\",\n        \"AL\",\n        \"AK\",\n        \"AZ\",\n        \"AR\",\n        \"CA\",\n        \"CO\",\n        \"CT\",\n        \"DE\",\n        \"FL\",\n        \"GA\",\n        \"HI\",\n        \"ID\",\n        \"IL\",\n        \"IN\",\n        \"IA\",\n        \"KS\",\n        \"KY\",\n        \"LA\",\n        \"ME\",\n        \"MD\",\n        \"MA\",\n        \"MI\",\n        \"MN\",\n        \"MS\",\n        \"MO\",\n        \"MT\",\n        \"NE\",\n        \"NV\",\n        \"NH\",\n        \"NJ\",\n        \"NM\",\n        \"NY\",\n        \"NC\",\n        \"ND\",\n        \"OH\",\n        \"OK\",\n        \"OR\",\n        \"PA\",\n        \"RI\",\n        \"SC\",\n        \"SD\",\n        \"TN\",\n        \"TX\",\n        \"UT\",\n        \"VT\",\n        \"VA\",\n        \"WA\",\n        \"WV\",\n        \"WI\",\n        \"WY\",\n        \"DC\",\n        \"PR\",\n        \"VI\",\n        \"GU\",\n        \"AS\",\n        \"MP\"\n      ],\n      \"enumTitles\": [\n        \"All states\",\n        \"Alabama (AL)\",\n        \"Alaska (AK)\",\n        \"Arizona (AZ)\",\n        \"Arkansas (AR)\",\n        \"California (CA)\",\n        \"Colorado (CO)\",\n        \"Connecticut (CT)\",\n        \"Delaware (DE)\",\n        \"Florida (FL)\",\n        \"Georgia (GA)\",\n        \"Hawaii (HI)\",\n        \"Idaho (ID)\",\n        \"Illinois (IL)\",\n        \"Indiana (IN)\",\n        \"Iowa (IA)\",\n        \"Kansas (KS)\",\n        \"Kentucky (KY)\",\n        \"Louisiana (LA)\",\n        \"Maine (ME)\",\n        \"Maryland (MD)\",\n        \"Massachusetts (MA)\",\n        \"Michigan (MI)\",\n        \"Minnesota (MN)\",\n        \"Mississippi (MS)\",\n        \"Missouri (MO)\",\n        \"Montana (MT)\",\n        \"Nebraska (NE)\",\n        \"Nevada (NV)\",\n        \"New Hampshire (NH)\",\n        \"New Jersey (NJ)\",\n        \"New Mexico (NM)\",\n        \"New York (NY)\",\n        \"North Carolina (NC)\",\n        \"North Dakota (ND)\",\n        \"Ohio (OH)\",\n        \"Oklahoma (OK)\",\n        \"Oregon (OR)\",\n        \"Pennsylvania (PA)\",\n        \"Rhode Island (RI)\",\n        \"South Carolina (SC)\",\n        \"South Dakota (SD)\",\n        \"Tennessee (TN)\",\n        \"Texas (TX)\",\n        \"Utah (UT)\",\n        \"Vermont (VT)\",\n        \"Virginia (VA)\",\n        \"Washington (WA)\",\n        \"West Virginia (WV)\",\n        \"Wisconsin (WI)\",\n        \"Wyoming (WY)\",\n        \"District of Columbia (DC)\",\n        \"Puerto Rico (PR)\",\n        \"U.S. Virgin Islands (VI)\",\n        \"Guam (GU)\",\n        \"American Samoa (AS)\",\n        \"Northern Mariana Islands (MP)\"\n      ],\n      \"default\": \"all\",\n      \"prefill\": \"all\"\n    },\n    \"district\": {\n      \"title\": \"House district\",\n      \"type\": \"integer\",\n      \"description\": \"House district number, 0 for at-large. Leave empty for every district.\",\n      \"minimum\": 0,\n      \"maximum\": 99\n    },\n    \"party\": {\n      \"title\": \"Party\",\n      \"type\": \"string\",\n      \"description\": \"Filter by party (joined from the public congress-legislators member list).\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"all\",\n        \"D\",\n        \"R\",\n        \"I\",\n        \"other\"\n      ],\n      \"enumTitles\": [\n        \"All parties\",\n        \"Democrat\",\n        \"Republican\",\n        \"Independent\",\n        \"Other\"\n      ],\n      \"default\": \"all\",\n      \"prefill\": \"all\",\n      \"sectionCaption\": \"Member filters\",\n      \"sectionDescription\": \"Narrow by member, state, district or party.\"\n    },\n    \"filingYearFrom\": {\n      \"title\": \"Filing year from\",\n      \"type\": \"integer\",\n      \"description\": \"First report year to include (House index year; Senate received-date year when no exact dates are set).\",\n      \"minimum\": 2008,\n      \"maximum\": 2100,\n      \"default\": 2025,\n      \"prefill\": 2025,\n      \"sectionCaption\": \"Dates\",\n      \"sectionDescription\": \"Filing years and optional exact filing or transaction date ranges (YYYY-MM-DD).\"\n    },\n    \"filingYearTo\": {\n      \"title\": \"Filing year to\",\n      \"type\": \"integer\",\n      \"description\": \"Last report year to include.\",\n      \"minimum\": 2008,\n      \"maximum\": 2100,\n      \"default\": 2025,\n      \"prefill\": 2025\n    },\n    \"filedFrom\": {\n      \"title\": \"Filed on or after\",\n      \"type\": \"string\",\n      \"description\": \"Exact filing-date lower bound in YYYY-MM-DD format. Empty = no lower bound.\",\n      \"editor\": \"textfield\",\n      \"default\": \"\",\n      \"prefill\": \"\"\n    },\n    \"filedTo\": {\n      \"title\": \"Filed on or before\",\n      \"type\": \"string\",\n      \"description\": \"Exact filing-date upper bound in YYYY-MM-DD format. Empty = no upper bound.\",\n      \"editor\": \"textfield\",\n      \"default\": \"\",\n      \"prefill\": \"\"\n    },\n    \"transactionFrom\": {\n      \"title\": \"Transaction date from\",\n      \"type\": \"string\",\n      \"description\": \"Keep trades executed on or after this YYYY-MM-DD date. Annual holdings have no transaction date and are excluded when this is set.\",\n      \"editor\": \"textfield\",\n      \"default\": \"\",\n      \"prefill\": \"\"\n    },\n    \"transactionTo\": {\n      \"title\": \"Transaction date to\",\n      \"type\": \"string\",\n      \"description\": \"Keep trades executed on or before this YYYY-MM-DD date.\",\n      \"editor\": \"textfield\",\n      \"default\": \"\",\n      \"prefill\": \"\"\n    },\n    \"ticker\": {\n      \"title\": \"Ticker symbols\",\n      \"type\": \"string\",\n      \"description\": \"One or more tickers separated by commas or spaces (e.g. `NVDA,AAPL`). Empty = all assets. Required for tickerSearch mode.\",\n      \"editor\": \"textfield\",\n      \"default\": \"\",\n      \"prefill\": \"\",\n      \"sectionCaption\": \"Asset and trade filters\",\n      \"sectionDescription\": \"Filter by ticker, asset text, transaction direction, owner or disclosed amount.\"\n    },\n    \"assetKeyword\": {\n      \"title\": \"Asset name contains\",\n      \"type\": \"string\",\n      \"description\": \"Case-insensitive text match on the asset name (e.g. `NVIDIA`, `Treasury`, `Palantir`).\",\n      \"editor\": \"textfield\",\n      \"default\": \"\",\n      \"prefill\": \"\"\n    },\n    \"transactionTypes\": {\n      \"title\": \"Transaction types\",\n      \"type\": \"array\",\n      \"description\": \"Keep any of the selected directions. Empty = purchases, sales, exchanges and other.\",\n      \"editor\": \"select\",\n      \"items\": {\n        \"type\": \"string\",\n        \"enum\": [\n          \"purchase\",\n          \"sale\",\n          \"salePartial\",\n          \"exchange\",\n          \"other\"\n        ],\n        \"enumTitles\": [\n          \"Purchase\",\n          \"Sale\",\n          \"Sale (partial)\",\n          \"Exchange\",\n          \"Other\"\n        ]\n      },\n      \"uniqueItems\": true,\n      \"default\": [],\n      \"prefill\": []\n    },\n    \"owners\": {\n      \"title\": \"Owner\",\n      \"type\": \"array\",\n      \"description\": \"Keep trades held by any of the selected owners. Empty = self, spouse, joint and dependent.\",\n      \"editor\": \"select\",\n      \"items\": {\n        \"type\": \"string\",\n        \"enum\": [\n          \"self\",\n          \"spouse\",\n          \"joint\",\n          \"dependent\"\n        ],\n        \"enumTitles\": [\n          \"Self\",\n          \"Spouse\",\n          \"Joint\",\n          \"Dependent\"\n        ]\n      },\n      \"uniqueItems\": true,\n      \"default\": [],\n      \"prefill\": []\n    },\n    \"amountBands\": {\n      \"title\": \"Amount bands\",\n      \"type\": \"array\",\n      \"description\": \"Keep trades whose disclosed amount range matches any selected band. Empty = all bands.\",\n      \"editor\": \"select\",\n      \"items\": {\n        \"type\": \"string\",\n        \"enum\": [\n          \"$1 - $1,000\",\n          \"$1,001 - $15,000\",\n          \"$15,001 - $50,000\",\n          \"$50,001 - $100,000\",\n          \"$100,001 - $250,000\",\n          \"$250,001 - $500,000\",\n          \"$500,001 - $1,000,000\",\n          \"$1,000,001 - $5,000,000\",\n          \"$5,000,001 - $25,000,000\",\n          \"$25,000,001 - $50,000,000\",\n          \"Over $50,000,000\"\n        ],\n        \"enumTitles\": [\n          \"$1 - $1,000\",\n          \"$1,001 - $15,000\",\n          \"$15,001 - $50,000\",\n          \"$50,001 - $100,000\",\n          \"$100,001 - $250,000\",\n          \"$250,001 - $500,000\",\n          \"$500,001 - $1,000,000\",\n          \"$1,000,001 - $5,000,000\",\n          \"$5,000,001 - $25,000,000\",\n          \"$25,000,001 - $50,000,000\",\n          \"Over $50,000,000\"\n        ]\n      },\n      \"uniqueItems\": true,\n      \"default\": [],\n      \"prefill\": []\n    },\n    \"minAmount\": {\n      \"title\": \"Minimum amount (USD)\",\n      \"type\": \"integer\",\n      \"description\": \"Keep rows whose disclosed range reaches at least this value.\",\n      \"minimum\": 0,\n      \"maximum\": 1000000000\n    },\n    \"maxAmount\": {\n      \"title\": \"Maximum amount (USD)\",\n      \"type\": \"integer\",\n      \"description\": \"Keep rows whose disclosed range starts at or below this value.\",\n      \"minimum\": 0,\n      \"maximum\": 1000000000\n    },\n    \"lateOnly\": {\n      \"title\": \"Late filings only\",\n      \"type\": \"boolean\",\n      \"description\": \"Only return trades disclosed later than the STOCK Act window.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"lateFilingDays\": {\n      \"title\": \"Late-filing threshold (days)\",\n      \"type\": \"integer\",\n      \"description\": \"Days between the transaction and the filing before a row is flagged as late. The STOCK Act outer limit is 45 days.\",\n      \"minimum\": 1,\n      \"maximum\": 365,\n      \"default\": 45,\n      \"prefill\": 45,\n      \"sectionCaption\": \"Filing options\",\n      \"sectionDescription\": \"Choose amendments, Senate filer types and record detail.\"\n    },\n    \"includeAmendments\": {\n      \"title\": \"Include amendments\",\n      \"type\": \"boolean\",\n      \"description\": \"Include amended annual filings (House code A). House PTRs are published under code P only.\",\n      \"default\": true,\n      \"prefill\": true\n    },\n    \"houseFilingTypes\": {\n      \"title\": \"House filing types (mode=houseFilings)\",\n      \"type\": \"array\",\n      \"description\": \"Restrict the House filing index to any of these Clerk codes. Empty = every code.\",\n      \"editor\": \"select\",\n      \"items\": {\n        \"type\": \"string\",\n        \"enum\": [\n          \"P\",\n          \"O\",\n          \"A\",\n          \"C\",\n          \"T\",\n          \"W\",\n          \"X\",\n          \"D\",\n          \"E\",\n          \"G\",\n          \"H\",\n          \"B\"\n        ],\n        \"enumTitles\": [\n          \"P — Periodic Transaction Report\",\n          \"O — Annual Report\",\n          \"A — Amendment\",\n          \"C — Candidate Report\",\n          \"T — Termination Report\",\n          \"W — Withdrawal Report\",\n          \"X — Extension\",\n          \"D — New Filer Report\",\n          \"E — Exemption\",\n          \"G — Gift Report\",\n          \"H — New Filer Report\",\n          \"B — Blind Trust\"\n        ]\n      },\n      \"uniqueItems\": true,\n      \"default\": [],\n      \"prefill\": []\n    },\n    \"senateFilerTypes\": {\n      \"title\": \"Senate filer types\",\n      \"type\": \"array\",\n      \"description\": \"Who to include on the Senate eFD search. Empty = senators. `all` lets the portal return every filer type.\",\n      \"editor\": \"select\",\n      \"items\": {\n        \"type\": \"string\",\n        \"enum\": [\n          \"senator\",\n          \"candidate\",\n          \"formerSenator\",\n          \"all\"\n        ],\n        \"enumTitles\": [\n          \"Senators\",\n          \"Candidates\",\n          \"Former senators\",\n          \"All filer types\"\n        ]\n      },\n      \"uniqueItems\": true,\n      \"default\": [\n        \"senator\"\n      ],\n      \"prefill\": [\n        \"senator\"\n      ]\n    },\n    \"includeFilingRecords\": {\n      \"title\": \"Include filing records\",\n      \"type\": \"boolean\",\n      \"description\": \"Emit one filing record per PTR before its transaction rows. Annual modes always emit the filing record.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"includeCommittees\": {\n      \"title\": \"Include committee memberships\",\n      \"type\": \"boolean\",\n      \"description\": \"Attach the member's current committee and subcommittee names from the public congress-legislators dataset.\",\n      \"default\": true,\n      \"prefill\": true\n    },\n    \"flagScanned\": {\n      \"title\": \"Flag scanned filings\",\n      \"type\": \"boolean\",\n      \"description\": \"Check annual PDFs for a text layer and flag paper-only scans with ocrRequired. PTRs are always checked.\",\n      \"default\": true,\n      \"prefill\": true\n    },\n    \"includeFormerMembers\": {\n      \"title\": \"Include former members (mode=members)\",\n      \"type\": \"boolean\",\n      \"description\": \"Include former members in the member directory search.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"maxItems\": {\n      \"title\": \"Max items\",\n      \"type\": \"integer\",\n      \"description\": \"Hard cap on emitted records. The default prefill uses 3.\",\n      \"minimum\": 1,\n      \"maximum\": 100000,\n      \"default\": 100,\n      \"prefill\": 3,\n      \"sectionCaption\": \"Limits\",\n      \"sectionDescription\": \"Cap the output and the number of filings scanned.\"\n    },\n    \"maxFilingsScanned\": {\n      \"title\": \"Max filings scanned\",\n      \"type\": \"integer\",\n      \"description\": \"Safety cap on filings downloaded or opened in one run.\",\n      \"minimum\": 1,\n      \"maximum\": 5000,\n      \"default\": 1000,\n      \"prefill\": 1000\n    }\n  },\n  \"required\": [\n    \"mode\"\n  ]\n}",
    "readme": "# Capitol Trade Ledger — Congress Stock Trades & Disclosures\n\nFollow what members of the U.S. House and Senate buy, sell and hold, straight from the\nofficial STOCK Act filings. The actor reads the Clerk of the House disclosure index and the\nSenate Electronic Financial Disclosure (eFD) system, parses the filings, and returns one flat\nrow per trade, annual holding, filing or member.\n\nNo login, cookies, API key or proxy setup is required. Every record links to the government\ndocument it came from.\n\n## What you get\n\n| Record type | What it represents |\n|---|---|\n| `transaction` | One reported purchase, sale, partial sale or exchange from a House PTR or Senate PTR (including PTR transactions listed in a Senate annual report) |\n| `holding` | One asset from a Senate annual report (Part 3), with value and income ranges |\n| `filing` | One disclosure filing (PTR, annual, amendment, candidate, termination, extension, etc.) with its official document link |\n| `member` | One member of Congress from the public member directory |\n\nEach row carries the member, chamber, party, state, district, filing ID, filing date,\ndocument URL, transaction date, owner, ticker, asset name and type, amount range, and the\ndays between the trade and disclosure; PTR trades also carry a 45-day late-filing flag.\n\nHouse annual reports expose their Schedule B transactions. Senate annual reports expose Part 3 holdings and Part 4b transactions. The member records carry\ncurrent committee and subcommittee memberships, so a trade can be read next to the committees\nthat oversee the sector.\n\n## Modes\n\n| Mode | Coverage |\n|---|---|\n| **House PTR trades** (`housePtr`) | Every periodic transaction report in the House Clerk's yearly index, parsed from the PDF text layer |\n| **Senate PTR trades** (`senatePtr`) | Senate eFD periodic transaction reports, parsed from the electronic HTML tables |\n| **House annual + Schedule B trades** (`houseAnnual`) | House annual reports and amendments (codes O and A), each filed with its Schedule B transactions |\n| **Senate annual reports** (`senateAnnual`) | Senate annual reports, amendments, their asset tables and Part 4b trades |\n| **House filing index** (`houseFilings`) | Every House filing type: PTR, annual, amendment, candidate, termination, withdrawal, extension, new filer and the other Clerk codes |\n| **Ticker search** (`tickerSearch`) | Scans PTRs from one or both chambers for one or more tickers |\n| **Member directory** (`members`) | Search current (or former) members by chamber, state, district, party or name |\n\n## Filters\n\n- Member name, state, House district and party.\n- Filing year range and exact filed or transaction date ranges.\n- One or more tickers, or free text on the asset name.\n- Transaction direction: purchase, sale, partial sale, exchange or other.\n- Owner: self, spouse, joint or dependent.\n- Amount bands from `$1 - $1,000` through `Over $50,000,000`, plus numeric minimum and maximum.\n- Late filings only, with a configurable threshold (default 45 days).\n- Senate filer types: senators, candidates, former senators or all.\n- House filing-type selection for the filing-index mode.\n\n## Inputs\n\n| Input | Type | Default | Description |\n|---|---|---|---|\n| `mode` | string | `housePtr` | What to collect. housePtr parses House periodic transaction reports, senatePtr parses Senate eFD PTRs, houseAnnual and senateAnnual return annual filings (Senate holdings and Part 4b trades are parsed too), houseFilings returns the House filing index, tickerSearch scans both chambers for one or more tickers, and members searches the member directory. |\n| `chamber` | string | `both` | Used by tickerSearch and members. PTR and annual modes imply their chamber. |\n| `memberName` | string | – | Case-insensitive text match on the member's name (e.g. `Pelosi`, `Nancy Pelosi`). Empty = all members. |\n| `state` | string | `all` | Two-letter state or territory code. Empty = all states. |\n| `district` | integer | – | House district number, 0 for at-large. Leave empty for every district. |\n| `party` | string | `all` | Filter by party (joined from the public congress-legislators member list). |\n| `filingYearFrom` | integer | `2025` | First report year to include (House index year; Senate received-date year when no exact dates are set). |\n| `filingYearTo` | integer | `2025` | Last report year to include. |\n| `filedFrom` | string | – | Exact filing-date lower bound in YYYY-MM-DD format. Empty = no lower bound. |\n| `filedTo` | string | – | Exact filing-date upper bound in YYYY-MM-DD format. Empty = no upper bound. |\n| `transactionFrom` | string | – | Keep trades executed on or after this YYYY-MM-DD date. Annual holdings have no transaction date and are excluded when this is set. |\n| `transactionTo` | string | – | Keep trades executed on or before this YYYY-MM-DD date. |\n| `ticker` | string | – | One or more tickers separated by commas or spaces (e.g. `NVDA,AAPL`). Empty = all assets. Required for tickerSearch mode. |\n| `assetKeyword` | string | – | Case-insensitive text match on the asset name (e.g. `NVIDIA`, `Treasury`, `Palantir`). |\n| `transactionTypes` | array | – | Keep any of the selected directions. Empty = purchases, sales, exchanges and other. |\n| `owners` | array | – | Keep trades held by any of the selected owners. Empty = self, spouse, joint and dependent. |\n| `amountBands` | array | – | Keep trades whose disclosed amount range matches any selected band. Empty = all bands. |\n| `minAmount` | integer | – | Keep rows whose disclosed range reaches at least this value. |\n| `maxAmount` | integer | – | Keep rows whose disclosed range starts at or below this value. |\n| `lateOnly` | boolean | `false` | Only return trades disclosed later than the STOCK Act window. |\n| `lateFilingDays` | integer | `45` | Days between the transaction and the filing before a row is flagged as late. The STOCK Act outer limit is 45 days. |\n| `includeAmendments` | boolean | `true` | Include amended annual filings (House code A). House PTRs are published under code P only. |\n| `houseFilingTypes` | array | – | Restrict the House filing index to any of these Clerk codes. Empty = every code. |\n| `senateFilerTypes` | array | `[\"senator\"]` | Who to include on the Senate eFD search. Empty = senators. `all` lets the portal return every filer type. |\n| `includeFilingRecords` | boolean | `false` | Emit one filing record per PTR before its transaction rows. Annual modes always emit the filing record. |\n| `includeCommittees` | boolean | `true` | Attach the member's current committee and subcommittee names from the public congress-legislators dataset. |\n| `flagScanned` | boolean | `true` | Check annual PDFs for a text layer and flag paper-only scans with ocrRequired. PTRs are always checked. |\n| `includeFormerMembers` | boolean | `false` | Include former members in the member directory search. |\n| `maxItems` | integer | `100` | Hard cap on emitted records. The default prefill uses 3. |\n| `maxFilingsScanned` | integer | `1000` | Safety cap on filings downloaded or opened in one run. |\n## Example inputs\n\nA small House PTR run:\n\n```json\n{\n  \"mode\": \"housePtr\",\n  \"filingYearFrom\": 2025,\n  \"filingYearTo\": 2025,\n  \"memberName\": \"Allen\",\n  \"maxItems\": 25\n}\n```\n\nSenate annual holdings and trades for one state:\n\n```json\n{\n  \"mode\": \"senateAnnual\",\n  \"state\": \"GA\",\n  \"filingYearFrom\": 2025,\n  \"filingYearTo\": 2025,\n  \"maxItems\": 100\n}\n```\n\nA two-chamber ticker search:\n\n```json\n{\n  \"mode\": \"tickerSearch\",\n  \"chamber\": \"both\",\n  \"ticker\": \"NVDA,AAPL\",\n  \"filingYearFrom\": 2025,\n  \"filingYearTo\": 2025,\n  \"transactionTypes\": [\"purchase\"],\n  \"maxItems\": 50\n}\n```\n\n## Output fields\n\nCommon fields: `recordType`, `chamber`, `memberName`, `firstName`, `lastName`, `party`,\n`partyName`, `state`, `district`, `districtLabel`, `bioguideId`, `committees`,\n`committeeCount`, `filingId`, `filingType`, `filingTypeCode`, `filingDate`, `filingYear`,\n`filingUrl`, `documentFormat`, `isAmendment`, `sourceUrl`, `scrapedAt`.\n\nTransactions add: `rowNumber`, `transactionDate`, `notificationDate`, `owner`, `ticker`, `assetName`,\n`assetType`, `assetTypeCode`, `assetIdentifier`, `transactionType`, `transactionTypeLabel`,\n`amountRange`, `amountLow`, `amountHigh`, `comment`, `daysToDisclosure`, `lateFiling`.\n\nHoldings add: `rowNumber`, `owner`, `ticker`, `assetName`, `assetType`, `assetTypeCode`, `assetIdentifier`,\n`valueRange`, `valueLow`, `valueHigh`, `incomeType`, `incomeRange`, `incomeLow`, `incomeHigh`.\n\nFilings add: `ocrRequired`, `parseStatus`, `transactionCount`, `holdingCount`.\n\nMembers add: `photoUrl`, `termStart`, `termEnd`, `birthday`, `gender`.\n\nEmpty values are omitted; no field is ever null, `\"\"`, `[]` or `{}`.\n\n## How it works\n\n1. The actor loads the public `unitedstates/congress-legislators` member, term and committee\n   files once per run and joins each filing to the member's party, state, district, bioguide ID\n   and current committee seats.\n2. **House:** downloads the Clerk's yearly index XML, filters it, fetches the PDFs, and parses\n   the transaction table from the PDF text layer. Paper filings with no text layer are returned\n   as a filing row with `ocrRequired: true` and `parseStatus: \"scannedPdf\"`; nothing is guessed\n   from images.\n3. **Senate:** accepts the eFD public-use agreement, obtains a session, queries the search\n   endpoint, and parses the electronic PTR and annual report pages. Paper filings are flagged\n   the same way as scanned House PDFs.\n4. The actor normalizes both chambers into one schema, applies the filters, and pushes records\n   until `maxItems` or the source is exhausted.\n\n## Coverage and honest limits\n\n- **House:** filing years 2012 to the current year. Electronic PTRs begin in 2014; earlier\n  reports and a minority of later reports are scanned paper filings. Annual Schedule B trades\n  are parsed from the text layer.\n- **Senate:** electronic filings from 2012 onward. Senators who file on paper are flagged, not\n  parsed. House annual asset/holding tables are not normalized; their Schedule B trades are.\n- Amounts are the disclosed ranges, never exact prices or share counts. The actor exposes the\n  range and, when the form gives one, the low and high bounds.\n- The 45-day late-filing flag measures the filing date against the transaction date on PTRs.\n  For amendments, the amendment's filing date is used, so the flag describes that filing.\n  Annual Schedule B and Part 4b rows carry `daysToDisclosure` but no `lateFiling` flag because\n  annual reports are not PTR filings.\n- Party, state, district and committees come from the public member dataset. Candidates who\n  never served in Congress have no party or committee match.\n- Ticker search reads filings until `maxItems` matches or `maxFilingsScanned` is reached. A very\n  rare ticker in a wide year range may need a larger scan cap.\n- `maxItems` is a hard cap. Scanned-filing notices are emitted after parsed trades in a batch so\n  they do not crowd out real transaction rows.\n\n## FAQ\n\n**Do I need an Apify proxy or a Senate account?** No. The actor uses the public House Clerk site\nand the public Senate eFD search. The Senate portal only accepts requests from U.S. addresses;\nthe actor runs on the Apify platform and obtains its own eFD session.\n\n**Why is a filing marked `ocrRequired`?** The member filed on paper or the PDF is an image\nscan. The row still gives the filing metadata and the official document URL.\n\n**Can I get exact dollar amounts?** No. Congress discloses ranges. Use `amountLow` and\n`amountHigh` for sorting and filtering.\n\n**Does this include state legislators?** No. It covers the U.S. House and Senate.\n\n**How current is the data?** The House index is refreshed by the Clerk during the day; Senate\neFD is live. A filing appears after the member files it.\n",
    "actorDefinition": {
      "actorSpecification": 1,
      "name": "congress-stock-trades-scraper",
      "title": "Capitol Trade Ledger — Congress Stock Trades & Disclosures",
      "description": "Follow US House and Senate stock trades from the official STOCK Act filings: parsed House PTR PDFs, Senate eFD PTR tables, annual disclosures, party, district, committee memberships, amount bands and late-filing flags. No login or API key.",
      "version": "1.0",
      "buildTag": "latest",
      "dockerfile": "../Dockerfile",
      "readme": "# Capitol Trade Ledger — Congress Stock Trades & Disclosures\n\nFollow what members of the U.S. House and Senate buy, sell and hold, straight from the\nofficial STOCK Act filings. The actor reads the Clerk of the House disclosure index and the\nSenate Electronic Financial Disclosure (eFD) system, parses the filings, and returns one flat\nrow per trade, annual holding, filing or member.\n\nNo login, cookies, API key or proxy setup is required. Every record links to the government\ndocument it came from.\n\n## What you get\n\n| Record type | What it represents |\n|---|---|\n| `transaction` | One reported purchase, sale, partial sale or exchange from a House PTR or Senate PTR (including PTR transactions listed in a Senate annual report) |\n| `holding` | One asset from a Senate annual report (Part 3), with value and income ranges |\n| `filing` | One disclosure filing (PTR, annual, amendment, candidate, termination, extension, etc.) with its official document link |\n| `member` | One member of Congress from the public member directory |\n\nEach row carries the member, chamber, party, state, district, filing ID, filing date,\ndocument URL, transaction date, owner, ticker, asset name and type, amount range, and the\ndays between the trade and disclosure; PTR trades also carry a 45-day late-filing flag.\n\nHouse annual reports expose their Schedule B transactions. Senate annual reports expose Part 3 holdings and Part 4b transactions. The member records carry\ncurrent committee and subcommittee memberships, so a trade can be read next to the committees\nthat oversee the sector.\n\n## Modes\n\n| Mode | Coverage |\n|---|---|\n| **House PTR trades** (`housePtr`) | Every periodic transaction report in the House Clerk's yearly index, parsed from the PDF text layer |\n| **Senate PTR trades** (`senatePtr`) | Senate eFD periodic transaction reports, parsed from the electronic HTML tables |\n| **House annual + Schedule B trades** (`houseAnnual`) | House annual reports and amendments (codes O and A), each filed with its Schedule B transactions |\n| **Senate annual reports** (`senateAnnual`) | Senate annual reports, amendments, their asset tables and Part 4b trades |\n| **House filing index** (`houseFilings`) | Every House filing type: PTR, annual, amendment, candidate, termination, withdrawal, extension, new filer and the other Clerk codes |\n| **Ticker search** (`tickerSearch`) | Scans PTRs from one or both chambers for one or more tickers |\n| **Member directory** (`members`) | Search current (or former) members by chamber, state, district, party or name |\n\n## Filters\n\n- Member name, state, House district and party.\n- Filing year range and exact filed or transaction date ranges.\n- One or more tickers, or free text on the asset name.\n- Transaction direction: purchase, sale, partial sale, exchange or other.\n- Owner: self, spouse, joint or dependent.\n- Amount bands from `$1 - $1,000` through `Over $50,000,000`, plus numeric minimum and maximum.\n- Late filings only, with a configurable threshold (default 45 days).\n- Senate filer types: senators, candidates, former senators or all.\n- House filing-type selection for the filing-index mode.\n\n## Inputs\n\n| Input | Type | Default | Description |\n|---|---|---|---|\n| `mode` | string | `housePtr` | What to collect. housePtr parses House periodic transaction reports, senatePtr parses Senate eFD PTRs, houseAnnual and senateAnnual return annual filings (Senate holdings and Part 4b trades are parsed too), houseFilings returns the House filing index, tickerSearch scans both chambers for one or more tickers, and members searches the member directory. |\n| `chamber` | string | `both` | Used by tickerSearch and members. PTR and annual modes imply their chamber. |\n| `memberName` | string | – | Case-insensitive text match on the member's name (e.g. `Pelosi`, `Nancy Pelosi`). Empty = all members. |\n| `state` | string | `all` | Two-letter state or territory code. Empty = all states. |\n| `district` | integer | – | House district number, 0 for at-large. Leave empty for every district. |\n| `party` | string | `all` | Filter by party (joined from the public congress-legislators member list). |\n| `filingYearFrom` | integer | `2025` | First report year to include (House index year; Senate received-date year when no exact dates are set). |\n| `filingYearTo` | integer | `2025` | Last report year to include. |\n| `filedFrom` | string | – | Exact filing-date lower bound in YYYY-MM-DD format. Empty = no lower bound. |\n| `filedTo` | string | – | Exact filing-date upper bound in YYYY-MM-DD format. Empty = no upper bound. |\n| `transactionFrom` | string | – | Keep trades executed on or after this YYYY-MM-DD date. Annual holdings have no transaction date and are excluded when this is set. |\n| `transactionTo` | string | – | Keep trades executed on or before this YYYY-MM-DD date. |\n| `ticker` | string | – | One or more tickers separated by commas or spaces (e.g. `NVDA,AAPL`). Empty = all assets. Required for tickerSearch mode. |\n| `assetKeyword` | string | – | Case-insensitive text match on the asset name (e.g. `NVIDIA`, `Treasury`, `Palantir`). |\n| `transactionTypes` | array | – | Keep any of the selected directions. Empty = purchases, sales, exchanges and other. |\n| `owners` | array | – | Keep trades held by any of the selected owners. Empty = self, spouse, joint and dependent. |\n| `amountBands` | array | – | Keep trades whose disclosed amount range matches any selected band. Empty = all bands. |\n| `minAmount` | integer | – | Keep rows whose disclosed range reaches at least this value. |\n| `maxAmount` | integer | – | Keep rows whose disclosed range starts at or below this value. |\n| `lateOnly` | boolean | `false` | Only return trades disclosed later than the STOCK Act window. |\n| `lateFilingDays` | integer | `45` | Days between the transaction and the filing before a row is flagged as late. The STOCK Act outer limit is 45 days. |\n| `includeAmendments` | boolean | `true` | Include amended annual filings (House code A). House PTRs are published under code P only. |\n| `houseFilingTypes` | array | – | Restrict the House filing index to any of these Clerk codes. Empty = every code. |\n| `senateFilerTypes` | array | `[\"senator\"]` | Who to include on the Senate eFD search. Empty = senators. `all` lets the portal return every filer type. |\n| `includeFilingRecords` | boolean | `false` | Emit one filing record per PTR before its transaction rows. Annual modes always emit the filing record. |\n| `includeCommittees` | boolean | `true` | Attach the member's current committee and subcommittee names from the public congress-legislators dataset. |\n| `flagScanned` | boolean | `true` | Check annual PDFs for a text layer and flag paper-only scans with ocrRequired. PTRs are always checked. |\n| `includeFormerMembers` | boolean | `false` | Include former members in the member directory search. |\n| `maxItems` | integer | `100` | Hard cap on emitted records. The default prefill uses 3. |\n| `maxFilingsScanned` | integer | `1000` | Safety cap on filings downloaded or opened in one run. |\n## Example inputs\n\nA small House PTR run:\n\n```json\n{\n  \"mode\": \"housePtr\",\n  \"filingYearFrom\": 2025,\n  \"filingYearTo\": 2025,\n  \"memberName\": \"Allen\",\n  \"maxItems\": 25\n}\n```\n\nSenate annual holdings and trades for one state:\n\n```json\n{\n  \"mode\": \"senateAnnual\",\n  \"state\": \"GA\",\n  \"filingYearFrom\": 2025,\n  \"filingYearTo\": 2025,\n  \"maxItems\": 100\n}\n```\n\nA two-chamber ticker search:\n\n```json\n{\n  \"mode\": \"tickerSearch\",\n  \"chamber\": \"both\",\n  \"ticker\": \"NVDA,AAPL\",\n  \"filingYearFrom\": 2025,\n  \"filingYearTo\": 2025,\n  \"transactionTypes\": [\"purchase\"],\n  \"maxItems\": 50\n}\n```\n\n## Output fields\n\nCommon fields: `recordType`, `chamber`, `memberName`, `firstName`, `lastName`, `party`,\n`partyName`, `state`, `district`, `districtLabel`, `bioguideId`, `committees`,\n`committeeCount`, `filingId`, `filingType`, `filingTypeCode`, `filingDate`, `filingYear`,\n`filingUrl`, `documentFormat`, `isAmendment`, `sourceUrl`, `scrapedAt`.\n\nTransactions add: `rowNumber`, `transactionDate`, `notificationDate`, `owner`, `ticker`, `assetName`,\n`assetType`, `assetTypeCode`, `assetIdentifier`, `transactionType`, `transactionTypeLabel`,\n`amountRange`, `amountLow`, `amountHigh`, `comment`, `daysToDisclosure`, `lateFiling`.\n\nHoldings add: `rowNumber`, `owner`, `ticker`, `assetName`, `assetType`, `assetTypeCode`, `assetIdentifier`,\n`valueRange`, `valueLow`, `valueHigh`, `incomeType`, `incomeRange`, `incomeLow`, `incomeHigh`.\n\nFilings add: `ocrRequired`, `parseStatus`, `transactionCount`, `holdingCount`.\n\nMembers add: `photoUrl`, `termStart`, `termEnd`, `birthday`, `gender`.\n\nEmpty values are omitted; no field is ever null, `\"\"`, `[]` or `{}`.\n\n## How it works\n\n1. The actor loads the public `unitedstates/congress-legislators` member, term and committee\n   files once per run and joins each filing to the member's party, state, district, bioguide ID\n   and current committee seats.\n2. **House:** downloads the Clerk's yearly index XML, filters it, fetches the PDFs, and parses\n   the transaction table from the PDF text layer. Paper filings with no text layer are returned\n   as a filing row with `ocrRequired: true` and `parseStatus: \"scannedPdf\"`; nothing is guessed\n   from images.\n3. **Senate:** accepts the eFD public-use agreement, obtains a session, queries the search\n   endpoint, and parses the electronic PTR and annual report pages. Paper filings are flagged\n   the same way as scanned House PDFs.\n4. The actor normalizes both chambers into one schema, applies the filters, and pushes records\n   until `maxItems` or the source is exhausted.\n\n## Coverage and honest limits\n\n- **House:** filing years 2012 to the current year. Electronic PTRs begin in 2014; earlier\n  reports and a minority of later reports are scanned paper filings. Annual Schedule B trades\n  are parsed from the text layer.\n- **Senate:** electronic filings from 2012 onward. Senators who file on paper are flagged, not\n  parsed. House annual asset/holding tables are not normalized; their Schedule B trades are.\n- Amounts are the disclosed ranges, never exact prices or share counts. The actor exposes the\n  range and, when the form gives one, the low and high bounds.\n- The 45-day late-filing flag measures the filing date against the transaction date on PTRs.\n  For amendments, the amendment's filing date is used, so the flag describes that filing.\n  Annual Schedule B and Part 4b rows carry `daysToDisclosure` but no `lateFiling` flag because\n  annual reports are not PTR filings.\n- Party, state, district and committees come from the public member dataset. Candidates who\n  never served in Congress have no party or committee match.\n- Ticker search reads filings until `maxItems` matches or `maxFilingsScanned` is reached. A very\n  rare ticker in a wide year range may need a larger scan cap.\n- `maxItems` is a hard cap. Scanned-filing notices are emitted after parsed trades in a batch so\n  they do not crowd out real transaction rows.\n\n## FAQ\n\n**Do I need an Apify proxy or a Senate account?** No. The actor uses the public House Clerk site\nand the public Senate eFD search. The Senate portal only accepts requests from U.S. addresses;\nthe actor runs on the Apify platform and obtains its own eFD session.\n\n**Why is a filing marked `ocrRequired`?** The member filed on paper or the PDF is an image\nscan. The row still gives the filing metadata and the official document URL.\n\n**Can I get exact dollar amounts?** No. Congress discloses ranges. Use `amountLow` and\n`amountHigh` for sorting and filtering.\n\n**Does this include state legislators?** No. It covers the U.S. House and Senate.\n\n**How current is the data?** The House index is refreshed by the Clerk during the day; Senate\neFD is live. A filing appears after the member files it.\n",
      "input": {
        "title": "Congress Stock Trades & Financial Disclosures Input",
        "description": "Read House Clerk and Senate eFD stock-trade and financial-disclosure filings without credentials.",
        "type": "object",
        "schemaVersion": 1,
        "properties": {
          "mode": {
            "title": "Mode",
            "type": "string",
            "description": "What to collect. housePtr parses House periodic transaction reports, senatePtr parses Senate eFD PTRs, houseAnnual returns annual filings and their Schedule B trades, senateAnnual returns annual filings with Part 3 holdings and Part 4b trades, houseFilings returns the House filing index, tickerSearch scans both chambers for one or more tickers, and members searches the member directory.",
            "editor": "select",
            "enum": [
              "housePtr",
              "senatePtr",
              "houseAnnual",
              "senateAnnual",
              "houseFilings",
              "tickerSearch",
              "members"
            ],
            "enumTitles": [
              "House PTR trades",
              "Senate PTR trades",
              "House annual + Schedule B trades",
              "Senate annual reports",
              "House filing index",
              "Ticker search (both chambers)",
              "Member directory"
            ],
            "default": "housePtr",
            "prefill": "housePtr",
            "sectionCaption": "Mode and scope",
            "sectionDescription": "Choose the filing type and the chamber scope."
          },
          "chamber": {
            "title": "Chamber scope",
            "type": "string",
            "description": "Used by tickerSearch and members. PTR and annual modes imply their chamber.",
            "editor": "select",
            "enum": [
              "both",
              "house",
              "senate"
            ],
            "enumTitles": [
              "Both chambers",
              "House",
              "Senate"
            ],
            "default": "both",
            "prefill": "both"
          },
          "memberName": {
            "title": "Member name",
            "type": "string",
            "description": "Case-insensitive text match on the member's name (e.g. `Pelosi`, `Nancy Pelosi`). Empty = all members.",
            "editor": "textfield",
            "default": "",
            "prefill": "Allen"
          },
          "state": {
            "title": "State",
            "type": "string",
            "description": "Two-letter state or territory code. Empty = all states.",
            "editor": "select",
            "enum": [
              "all",
              "AL",
              "AK",
              "AZ",
              "AR",
              "CA",
              "CO",
              "CT",
              "DE",
              "FL",
              "GA",
              "HI",
              "ID",
              "IL",
              "IN",
              "IA",
              "KS",
              "KY",
              "LA",
              "ME",
              "MD",
              "MA",
              "MI",
              "MN",
              "MS",
              "MO",
              "MT",
              "NE",
              "NV",
              "NH",
              "NJ",
              "NM",
              "NY",
              "NC",
              "ND",
              "OH",
              "OK",
              "OR",
              "PA",
              "RI",
              "SC",
              "SD",
              "TN",
              "TX",
              "UT",
              "VT",
              "VA",
              "WA",
              "WV",
              "WI",
              "WY",
              "DC",
              "PR",
              "VI",
              "GU",
              "AS",
              "MP"
            ],
            "enumTitles": [
              "All states",
              "Alabama (AL)",
              "Alaska (AK)",
              "Arizona (AZ)",
              "Arkansas (AR)",
              "California (CA)",
              "Colorado (CO)",
              "Connecticut (CT)",
              "Delaware (DE)",
              "Florida (FL)",
              "Georgia (GA)",
              "Hawaii (HI)",
              "Idaho (ID)",
              "Illinois (IL)",
              "Indiana (IN)",
              "Iowa (IA)",
              "Kansas (KS)",
              "Kentucky (KY)",
              "Louisiana (LA)",
              "Maine (ME)",
              "Maryland (MD)",
              "Massachusetts (MA)",
              "Michigan (MI)",
              "Minnesota (MN)",
              "Mississippi (MS)",
              "Missouri (MO)",
              "Montana (MT)",
              "Nebraska (NE)",
              "Nevada (NV)",
              "New Hampshire (NH)",
              "New Jersey (NJ)",
              "New Mexico (NM)",
              "New York (NY)",
              "North Carolina (NC)",
              "North Dakota (ND)",
              "Ohio (OH)",
              "Oklahoma (OK)",
              "Oregon (OR)",
              "Pennsylvania (PA)",
              "Rhode Island (RI)",
              "South Carolina (SC)",
              "South Dakota (SD)",
              "Tennessee (TN)",
              "Texas (TX)",
              "Utah (UT)",
              "Vermont (VT)",
              "Virginia (VA)",
              "Washington (WA)",
              "West Virginia (WV)",
              "Wisconsin (WI)",
              "Wyoming (WY)",
              "District of Columbia (DC)",
              "Puerto Rico (PR)",
              "U.S. Virgin Islands (VI)",
              "Guam (GU)",
              "American Samoa (AS)",
              "Northern Mariana Islands (MP)"
            ],
            "default": "all",
            "prefill": "all"
          },
          "district": {
            "title": "House district",
            "type": "integer",
            "description": "House district number, 0 for at-large. Leave empty for every district.",
            "minimum": 0,
            "maximum": 99
          },
          "party": {
            "title": "Party",
            "type": "string",
            "description": "Filter by party (joined from the public congress-legislators member list).",
            "editor": "select",
            "enum": [
              "all",
              "D",
              "R",
              "I",
              "other"
            ],
            "enumTitles": [
              "All parties",
              "Democrat",
              "Republican",
              "Independent",
              "Other"
            ],
            "default": "all",
            "prefill": "all",
            "sectionCaption": "Member filters",
            "sectionDescription": "Narrow by member, state, district or party."
          },
          "filingYearFrom": {
            "title": "Filing year from",
            "type": "integer",
            "description": "First report year to include (House index year; Senate received-date year when no exact dates are set).",
            "minimum": 2008,
            "maximum": 2100,
            "default": 2025,
            "prefill": 2025,
            "sectionCaption": "Dates",
            "sectionDescription": "Filing years and optional exact filing or transaction date ranges (YYYY-MM-DD)."
          },
          "filingYearTo": {
            "title": "Filing year to",
            "type": "integer",
            "description": "Last report year to include.",
            "minimum": 2008,
            "maximum": 2100,
            "default": 2025,
            "prefill": 2025
          },
          "filedFrom": {
            "title": "Filed on or after",
            "type": "string",
            "description": "Exact filing-date lower bound in YYYY-MM-DD format. Empty = no lower bound.",
            "editor": "textfield",
            "default": "",
            "prefill": ""
          },
          "filedTo": {
            "title": "Filed on or before",
            "type": "string",
            "description": "Exact filing-date upper bound in YYYY-MM-DD format. Empty = no upper bound.",
            "editor": "textfield",
            "default": "",
            "prefill": ""
          },
          "transactionFrom": {
            "title": "Transaction date from",
            "type": "string",
            "description": "Keep trades executed on or after this YYYY-MM-DD date. Annual holdings have no transaction date and are excluded when this is set.",
            "editor": "textfield",
            "default": "",
            "prefill": ""
          },
          "transactionTo": {
            "title": "Transaction date to",
            "type": "string",
            "description": "Keep trades executed on or before this YYYY-MM-DD date.",
            "editor": "textfield",
            "default": "",
            "prefill": ""
          },
          "ticker": {
            "title": "Ticker symbols",
            "type": "string",
            "description": "One or more tickers separated by commas or spaces (e.g. `NVDA,AAPL`). Empty = all assets. Required for tickerSearch mode.",
            "editor": "textfield",
            "default": "",
            "prefill": "",
            "sectionCaption": "Asset and trade filters",
            "sectionDescription": "Filter by ticker, asset text, transaction direction, owner or disclosed amount."
          },
          "assetKeyword": {
            "title": "Asset name contains",
            "type": "string",
            "description": "Case-insensitive text match on the asset name (e.g. `NVIDIA`, `Treasury`, `Palantir`).",
            "editor": "textfield",
            "default": "",
            "prefill": ""
          },
          "transactionTypes": {
            "title": "Transaction types",
            "type": "array",
            "description": "Keep any of the selected directions. Empty = purchases, sales, exchanges and other.",
            "editor": "select",
            "items": {
              "type": "string",
              "enum": [
                "purchase",
                "sale",
                "salePartial",
                "exchange",
                "other"
              ],
              "enumTitles": [
                "Purchase",
                "Sale",
                "Sale (partial)",
                "Exchange",
                "Other"
              ]
            },
            "uniqueItems": true,
            "default": [],
            "prefill": []
          },
          "owners": {
            "title": "Owner",
            "type": "array",
            "description": "Keep trades held by any of the selected owners. Empty = self, spouse, joint and dependent.",
            "editor": "select",
            "items": {
              "type": "string",
              "enum": [
                "self",
                "spouse",
                "joint",
                "dependent"
              ],
              "enumTitles": [
                "Self",
                "Spouse",
                "Joint",
                "Dependent"
              ]
            },
            "uniqueItems": true,
            "default": [],
            "prefill": []
          },
          "amountBands": {
            "title": "Amount bands",
            "type": "array",
            "description": "Keep trades whose disclosed amount range matches any selected band. Empty = all bands.",
            "editor": "select",
            "items": {
              "type": "string",
              "enum": [
                "$1 - $1,000",
                "$1,001 - $15,000",
                "$15,001 - $50,000",
                "$50,001 - $100,000",
                "$100,001 - $250,000",
                "$250,001 - $500,000",
                "$500,001 - $1,000,000",
                "$1,000,001 - $5,000,000",
                "$5,000,001 - $25,000,000",
                "$25,000,001 - $50,000,000",
                "Over $50,000,000"
              ],
              "enumTitles": [
                "$1 - $1,000",
                "$1,001 - $15,000",
                "$15,001 - $50,000",
                "$50,001 - $100,000",
                "$100,001 - $250,000",
                "$250,001 - $500,000",
                "$500,001 - $1,000,000",
                "$1,000,001 - $5,000,000",
                "$5,000,001 - $25,000,000",
                "$25,000,001 - $50,000,000",
                "Over $50,000,000"
              ]
            },
            "uniqueItems": true,
            "default": [],
            "prefill": []
          },
          "minAmount": {
            "title": "Minimum amount (USD)",
            "type": "integer",
            "description": "Keep rows whose disclosed range reaches at least this value.",
            "minimum": 0,
            "maximum": 1000000000
          },
          "maxAmount": {
            "title": "Maximum amount (USD)",
            "type": "integer",
            "description": "Keep rows whose disclosed range starts at or below this value.",
            "minimum": 0,
            "maximum": 1000000000
          },
          "lateOnly": {
            "title": "Late filings only",
            "type": "boolean",
            "description": "Only return trades disclosed later than the STOCK Act window.",
            "default": false,
            "prefill": false
          },
          "lateFilingDays": {
            "title": "Late-filing threshold (days)",
            "type": "integer",
            "description": "Days between the transaction and the filing before a row is flagged as late. The STOCK Act outer limit is 45 days.",
            "minimum": 1,
            "maximum": 365,
            "default": 45,
            "prefill": 45,
            "sectionCaption": "Filing options",
            "sectionDescription": "Choose amendments, Senate filer types and record detail."
          },
          "includeAmendments": {
            "title": "Include amendments",
            "type": "boolean",
            "description": "Include amended annual filings (House code A). House PTRs are published under code P only.",
            "default": true,
            "prefill": true
          },
          "houseFilingTypes": {
            "title": "House filing types (mode=houseFilings)",
            "type": "array",
            "description": "Restrict the House filing index to any of these Clerk codes. Empty = every code.",
            "editor": "select",
            "items": {
              "type": "string",
              "enum": [
                "P",
                "O",
                "A",
                "C",
                "T",
                "W",
                "X",
                "D",
                "E",
                "G",
                "H",
                "B"
              ],
              "enumTitles": [
                "P — Periodic Transaction Report",
                "O — Annual Report",
                "A — Amendment",
                "C — Candidate Report",
                "T — Termination Report",
                "W — Withdrawal Report",
                "X — Extension",
                "D — New Filer Report",
                "E — Exemption",
                "G — Gift Report",
                "H — New Filer Report",
                "B — Blind Trust"
              ]
            },
            "uniqueItems": true,
            "default": [],
            "prefill": []
          },
          "senateFilerTypes": {
            "title": "Senate filer types",
            "type": "array",
            "description": "Who to include on the Senate eFD search. Empty = senators. `all` lets the portal return every filer type.",
            "editor": "select",
            "items": {
              "type": "string",
              "enum": [
                "senator",
                "candidate",
                "formerSenator",
                "all"
              ],
              "enumTitles": [
                "Senators",
                "Candidates",
                "Former senators",
                "All filer types"
              ]
            },
            "uniqueItems": true,
            "default": [
              "senator"
            ],
            "prefill": [
              "senator"
            ]
          },
          "includeFilingRecords": {
            "title": "Include filing records",
            "type": "boolean",
            "description": "Emit one filing record per PTR before its transaction rows. Annual modes always emit the filing record.",
            "default": false,
            "prefill": false
          },
          "includeCommittees": {
            "title": "Include committee memberships",
            "type": "boolean",
            "description": "Attach the member's current committee and subcommittee names from the public congress-legislators dataset.",
            "default": true,
            "prefill": true
          },
          "flagScanned": {
            "title": "Flag scanned filings",
            "type": "boolean",
            "description": "Check annual PDFs for a text layer and flag paper-only scans with ocrRequired. PTRs are always checked.",
            "default": true,
            "prefill": true
          },
          "includeFormerMembers": {
            "title": "Include former members (mode=members)",
            "type": "boolean",
            "description": "Include former members in the member directory search.",
            "default": false,
            "prefill": false
          },
          "maxItems": {
            "title": "Max items",
            "type": "integer",
            "description": "Hard cap on emitted records. The default prefill uses 3.",
            "minimum": 1,
            "maximum": 100000,
            "default": 100,
            "prefill": 3,
            "sectionCaption": "Limits",
            "sectionDescription": "Cap the output and the number of filings scanned."
          },
          "maxFilingsScanned": {
            "title": "Max filings scanned",
            "type": "integer",
            "description": "Safety cap on filings downloaded or opened in one run.",
            "minimum": 1,
            "maximum": 5000,
            "default": 1000,
            "prefill": 1000
          }
        },
        "required": [
          "mode"
        ]
      },
      "output": {
        "actorOutputSchemaVersion": 1,
        "title": "Capitol Trade Ledger Output",
        "description": "Congressional transactions, annual holdings, filings and members from the official House Clerk and Senate eFD systems, enriched with party, state, district, committees and late-filing flags.",
        "properties": {
          "records": {
            "type": "string",
            "title": "Congress records",
            "description": "Dataset with one row per transaction, holding, filing or member.",
            "template": "{{links.apiDefaultDatasetUrl}}/items"
          }
        }
      },
      "storages": {
        "dataset": {
          "actorSpecification": 1,
          "views": {
            "overview": {
              "title": "Congress trades",
              "transformation": {
                "fields": [
                  "chamber",
                  "memberName",
                  "party",
                  "state",
                  "district",
                  "ticker",
                  "assetName",
                  "transactionType",
                  "transactionDate",
                  "amountRange",
                  "lateFiling"
                ]
              },
              "display": {
                "component": "table",
                "properties": {}
              }
            }
          }
        }
      },
      "environmentVariables": {}
    },
    "buildNumber": "1.0.7",
    "actVersion": {
      "sourceType": "SOURCE_FILES",
      "buildTag": "latest",
      "versionNumber": "1.0"
    }
  }
}