# Send Congress Trades Tracker to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "congress-trades",
    "name": "Congress Trades Tracker",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/Armax/congress-trades",
    "canonicalUrl": "https://clawhub.ai/Armax/congress-trades",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/congress-trades",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=congress-trades",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "scripts/scraper.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/congress-trades"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/congress-trades",
    "downloadUrl": "https://openagent3.xyz/downloads/congress-trades",
    "agentUrl": "https://openagent3.xyz/skills/congress-trades/agent",
    "manifestUrl": "https://openagent3.xyz/skills/congress-trades/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/congress-trades/agent.md"
  }
}
```
## Documentation

### Congress Trades Tracker

Monitor US congressional stock trades via Quiver Quant API, store in a local SQLite database, and alert on new significant trades. Requires Python requests library and a Quiver Quant API key.

### Requirements

Python 3.10+ with requests (pip install requests)
QUIVER_API_KEY environment variable (get a key at https://www.quiverquant.com/)

### Environment Variables

VariableRequiredDefaultDescriptionQUIVER_API_KEYYes—Quiver Quant API tokenCONGRESS_DB_PATHNodata/congress_trades.dbSQLite database pathMIN_TRADE_AMOUNTNo15001Minimum trade amount to trigger alerts

Set these in your shell profile, .env file, or cron environment. Never hard-code API keys in the script.

### 1. Install Python dependency

pip install requests

### 2. Set your API key

export QUIVER_API_KEY="your-api-key-here"

### 3. Schedule with user cron (no sudo needed)

Add your env vars to ~/.profile or a .env file sourced by your shell, then add the cron entry:

crontab -e
# Add this line (uses env vars from your profile):
* * * * * . "$HOME/.profile" && /usr/bin/python3 /path/to/scripts/scraper.py >> /path/to/logs/scraper.log 2>&1

Never inline API keys directly in crontab entries.

### 4. Set up OpenClaw alert pickup

Add to your HEARTBEAT.md:

## Check for congress trade alerts
- Read \`congress_trades/data/pending_congress_alert.txt\` — if it has content, send the alert to the user, then delete the file.

Or create an OpenClaw cron job (every 5 min) to check and forward alerts.

### How It Works

Scraper runs every minute, fetches latest 200 trades from api.quiverquant.com
Inserts into local SQLite with unique trade_key deduplication
First run initializes DB and reports newest trade
Subsequent runs detect new trades, filter to buys/sells above threshold
Writes formatted alert to data/pending_congress_alert.txt for OpenClaw pickup
Keeps last 50 alerts in data/new_trades.json

### Network and Data

Only outbound connection: api.quiverquant.com (Quiver Quant API)
Storage: local SQLite file + JSON alert files in data/
No external endpoints besides the Quiver API
Restrict file permissions on data directory (chmod 700 data/)

### Alert Format

🏛️ 3 new congress trade(s) detected:

🟢 PURCHASE: Nancy Pelosi (D) [Rep]
   $NVDA — $1,000,001 - $5,000,000
   Trade: 2026-02-10 | Reported: 2026-02-14

🔴 SALE: Dan Crenshaw (R) [Rep]
   $MSFT — $15,001 - $50,000
   Trade: 2026-02-09 | Reported: 2026-02-14

### Customization

MIN_TRADE_AMOUNT: raise/lower via env var to change alert threshold
Fetch limit: change limit=200 in fetch_trades() for broader sweeps
Cron frequency: reduce to every 5 or 15 minutes if you prefer less polling
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: Armax
- Version: 1.1.4
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-04-30T16:55:25.780Z
- Expires at: 2026-05-07T16:55:25.780Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/congress-trades)
- [Send to Agent page](https://openagent3.xyz/skills/congress-trades/agent)
- [JSON manifest](https://openagent3.xyz/skills/congress-trades/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/congress-trades/agent.md)
- [Download page](https://openagent3.xyz/downloads/congress-trades)