# US Congress Stock Trades Feed: House & Senate PTRs (`moment-data/congress-stock-trades-feed`) Actor

Periodic Transaction Reports from the House Clerk and Senate eFD: member, ticker, asset, transaction type, amount range and official filing links. Includes only what the official disclosures publish about the trades.

- **URL**: https://apify.com/moment-data/congress-stock-trades-feed.md
- **Developed by:** [Luke Miller](https://apify.com/moment-data) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 trade records

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## US Congress Stock Trades Feed: House PTR & Senate eFD (official)

A feed of **Periodic Transaction Reports (PTRs)** filed by members of the **U.S. House of Representatives** and the **U.S. Senate** under the STOCK Act. Each record is one disclosed trade: the member, chamber, state, **ticker and asset**, purchase/sale/exchange, trade and filing dates, the official **amount range**, and a link to the source filing.

House data comes from the Clerk's public yearly index (`{year}FD.zip`) and the official PTR PDFs. Senate data comes from [efdsearch.senate.gov](https://efdsearch.senate.gov/search/home/) after the Actor accepts the site's published use-prohibition terms on each run (this was approved for this Actor). No third-party aggregator, no API key.

This is an official-disclosure feed. It includes the **member's name as published** (public officials). It does **not** add family-account or brokerage "sub-owner" lines from the form. Scanned paper filings (no extractable text) are skipped.

### Legal notice

The Ethics in Government Act, 5 U.S.C. app. § 105(c), makes it unlawful to obtain or use a report for any unlawful purpose; for any commercial purpose other than by news and communications media for dissemination to the general public; for determining or establishing the credit rating of any individual; or for use, directly or indirectly, in the solicitation of money for any political, charitable or other purpose. **Users are responsible for lawful use of the data.** This Actor is not affiliated with the House, the Senate or the Clerk.

### Who it's for

- **Journalists and newsrooms:** a structured, official feed of newly filed trades, with links back to the PDF or eFD page.
- **Researchers and civic data teams:** ticker, member, chamber and amount-range fields ready for analysis, plus `sinceLastRun` for a daily delta.
- **Compliance and market-data products:** official source documents rather than a scraped copy of a third-party site.

### Output (one record per trade)

`chamber`, `memberName`, `firstName`, `lastName`, `state`, `district`, `stateDistrict`, `ticker`, `assetName`, `assetType`, `transactionType`, `transactionTypeCode`, `transactionDate`, `notificationDate`, `filingDate`, `amountRange`, `amountMin`, `amountMax`, `ownerType` (filer / SP / DC / JT as published), `filingId`, `filingUrl`, `paperFiling`, `source`, `licence`, `retrievedAt`.

Sample (House PTR filed 2026-11-12):

```json
{
  "chamber": "house",
  "memberName": "Hon. David J. Taylor",
  "firstName": "David J.",
  "lastName": "Taylor",
  "state": "OH",
  "district": "02",
  "ticker": "GOOGL",
  "assetName": "Alphabet Inc. - Class A Common Stock",
  "assetType": "ST",
  "transactionType": "purchase",
  "transactionTypeCode": "P",
  "transactionDate": "2026-11-03",
  "filingDate": "2026-11-12",
  "amountRange": "$1,001 - $15,000",
  "amountMin": 1001,
  "amountMax": 15000,
  "ownerType": "filer",
  "filingId": "20035831",
  "filingUrl": "https://disclosures-clerk.house.gov/public_disc/ptr-pdfs/2026/20035831.pdf"
}
```

### Input

| Field | What it does |
|---|---|
| `maxItems` | Trades to return (default 30) |
| `daysBack` | Filings received in the last N days (default 30) |
| `chambers` | `house`, `senate`, or both (default both) |
| `tickers` | e.g. `AAPL`, `NVDA` |
| `members` | Name keywords, e.g. `Pelosi`, `Taylor` |
| `states` | 2-letter codes (`CA`, `TX`) |
| `transactionTypes` | `purchase`, `sale`, `exchange` |
| `maxFilings` | How many recent electronic PTRs to open (default 25) |
| `mode` / `stateKey` | `window` (default) or `sinceLastRun` for scheduled new-trade alerts |

Examples:

- Latest trades, default: `{}`
- NVIDIA trades by House members this month: `{"chambers":["house"],"tickers":["NVDA"],"daysBack":30,"maxItems":100}`
- One member: `{"members":["Pelosi"],"daysBack":90,"maxItems":200}`
- Daily delta: `{"mode":"sinceLastRun","stateKey":"all","daysBack":7,"maxItems":500}`

### Pricing (pay per event)

- `apify-actor-start`: $0.005 per run
- `trade-record`: $0.003 per trade

A default run of 30 records costs **$0.095**. `maxItems` caps how many records you pay for. Compute is included in the event prices.

### Quick start

1. Click **Try for free** and run with the default input (`{}`) — you should get 30 of the newest parseable trades, in well under two minutes.
2. Filter by `tickers`, `members`, `chambers` or `states`.
3. For a daily schedule, set `mode` to `sinceLastRun` and keep a stable `stateKey`.

### Notes and limits

- Default input is stateless and small so Apify's daily auto-test stays green (well under 5 minutes, non-empty dataset).
- House paper/scanned PDFs (document IDs usually starting with 8 or 9) have no extractable text and are skipped.
- Amounts are the **ranges the member reported**, not exact dollar figures.
- If the Senate eFD search is temporarily unavailable, the run still returns House trades and notes `senate` in `OUTPUT.failedSources`.
- Not a substitute for the official filings; always open `filingUrl` for the signed report.

### FAQ

**Is this legal to use commercially?** Only in the ways § 105(c) allows (notably news-media dissemination to the general public). This Actor does not give legal advice; you must apply the statute to your own use.

**Do you include spouses' names?** Only the official owner type codes (SP, DC, JT) when the form lists them. Account names and "sub-owner" lines are omitted.

**Why might a recently filed trade be missing?** The Clerk's index can lag a short time, and scanned paper PTRs cannot be parsed. Check the official filing link or widen `daysBack`.

# Actor input Schema

## `maxItems` (type: `integer`):

Maximum trade records to return. You pay per record.

## `daysBack` (type: `integer`):

Only Periodic Transaction Reports filed in the last N days (default 30).

## `chambers` (type: `array`):

house, senate, or both (default both).

## `tickers` (type: `array`):

Only trades in these symbols, e.g. AAPL, NVDA, GOOGL.

## `members` (type: `array`):

Filter by last or full name keywords, e.g. Pelosi, Taylor.

## `states` (type: `array`):

2-letter state codes, e.g. CA, TX, OH. Applied to House districts and Senate filers when the state is known.

## `transactionTypes` (type: `array`):

purchase (P), sale (S), exchange (E).

## `maxFilings` (type: `integer`):

How many recent electronic PTRs to download and parse (each House filing is a PDF). Keeps runs well under 5 minutes.

## `mode` (type: `string`):

sinceLastRun remembers trades already delivered, in a named key-value store, so scheduled runs only return new ones.

## `stateKey` (type: `string`):

Separate memory per saved search when mode is sinceLastRun.

## Actor input object example

```json
{
  "maxItems": 30,
  "daysBack": 30,
  "maxFilings": 25,
  "mode": "window",
  "stateKey": "default"
}
```

# Actor output Schema

## `trades` (type: `string`):

One record per disclosed transaction.

## `summary` (type: `string`):

Window, filters, source errors, requests.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("moment-data/congress-stock-trades-feed").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("moment-data/congress-stock-trades-feed").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call moment-data/congress-stock-trades-feed --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,moment-data/congress-stock-trades-feed"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/vZyDAK0WOUelBJPxX/builds/reZpLRnWGurlqglEz/openapi.json
