{
  "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": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/congress-trades",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=congress-trades",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "scripts/scraper.py"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "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."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/congress-trades",
    "agentPageUrl": "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"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "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."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Congress Trades Tracker",
        "body": "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."
      },
      {
        "title": "Requirements",
        "body": "Python 3.10+ with requests (pip install requests)\nQUIVER_API_KEY environment variable (get a key at https://www.quiverquant.com/)"
      },
      {
        "title": "Environment Variables",
        "body": "VariableRequiredDefaultDescriptionQUIVER_API_KEYYes—Quiver Quant API tokenCONGRESS_DB_PATHNodata/congress_trades.dbSQLite database pathMIN_TRADE_AMOUNTNo15001Minimum trade amount to trigger alerts\n\nSet these in your shell profile, .env file, or cron environment. Never hard-code API keys in the script."
      },
      {
        "title": "1. Install Python dependency",
        "body": "pip install requests"
      },
      {
        "title": "2. Set your API key",
        "body": "export QUIVER_API_KEY=\"your-api-key-here\""
      },
      {
        "title": "3. Schedule with user cron (no sudo needed)",
        "body": "Add your env vars to ~/.profile or a .env file sourced by your shell, then add the cron entry:\n\ncrontab -e\n# Add this line (uses env vars from your profile):\n* * * * * . \"$HOME/.profile\" && /usr/bin/python3 /path/to/scripts/scraper.py >> /path/to/logs/scraper.log 2>&1\n\nNever inline API keys directly in crontab entries."
      },
      {
        "title": "4. Set up OpenClaw alert pickup",
        "body": "Add to your HEARTBEAT.md:\n\n## Check for congress trade alerts\n- Read `congress_trades/data/pending_congress_alert.txt` — if it has content, send the alert to the user, then delete the file.\n\nOr create an OpenClaw cron job (every 5 min) to check and forward alerts."
      },
      {
        "title": "How It Works",
        "body": "Scraper runs every minute, fetches latest 200 trades from api.quiverquant.com\nInserts into local SQLite with unique trade_key deduplication\nFirst run initializes DB and reports newest trade\nSubsequent runs detect new trades, filter to buys/sells above threshold\nWrites formatted alert to data/pending_congress_alert.txt for OpenClaw pickup\nKeeps last 50 alerts in data/new_trades.json"
      },
      {
        "title": "Network and Data",
        "body": "Only outbound connection: api.quiverquant.com (Quiver Quant API)\nStorage: local SQLite file + JSON alert files in data/\nNo external endpoints besides the Quiver API\nRestrict file permissions on data directory (chmod 700 data/)"
      },
      {
        "title": "Alert Format",
        "body": "🏛️ 3 new congress trade(s) detected:\n\n🟢 PURCHASE: Nancy Pelosi (D) [Rep]\n   $NVDA — $1,000,001 - $5,000,000\n   Trade: 2026-02-10 | Reported: 2026-02-14\n\n🔴 SALE: Dan Crenshaw (R) [Rep]\n   $MSFT — $15,001 - $50,000\n   Trade: 2026-02-09 | Reported: 2026-02-14"
      },
      {
        "title": "Customization",
        "body": "MIN_TRADE_AMOUNT: raise/lower via env var to change alert threshold\nFetch limit: change limit=200 in fetch_trades() for broader sweeps\nCron frequency: reduce to every 5 or 15 minutes if you prefer less polling"
      }
    ],
    "body": "Congress Trades Tracker\n\nMonitor 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.\n\nRequirements\nPython 3.10+ with requests (pip install requests)\nQUIVER_API_KEY environment variable (get a key at https://www.quiverquant.com/)\nEnvironment Variables\nVariable\tRequired\tDefault\tDescription\nQUIVER_API_KEY\tYes\t—\tQuiver Quant API token\nCONGRESS_DB_PATH\tNo\tdata/congress_trades.db\tSQLite database path\nMIN_TRADE_AMOUNT\tNo\t15001\tMinimum trade amount to trigger alerts\n\nSet these in your shell profile, .env file, or cron environment. Never hard-code API keys in the script.\n\nSetup\n1. Install Python dependency\npip install requests\n\n2. Set your API key\nexport QUIVER_API_KEY=\"your-api-key-here\"\n\n3. Schedule with user cron (no sudo needed)\n\nAdd your env vars to ~/.profile or a .env file sourced by your shell, then add the cron entry:\n\ncrontab -e\n# Add this line (uses env vars from your profile):\n* * * * * . \"$HOME/.profile\" && /usr/bin/python3 /path/to/scripts/scraper.py >> /path/to/logs/scraper.log 2>&1\n\n\nNever inline API keys directly in crontab entries.\n\n4. Set up OpenClaw alert pickup\n\nAdd to your HEARTBEAT.md:\n\n## Check for congress trade alerts\n- Read `congress_trades/data/pending_congress_alert.txt` — if it has content, send the alert to the user, then delete the file.\n\n\nOr create an OpenClaw cron job (every 5 min) to check and forward alerts.\n\nHow It Works\nScraper runs every minute, fetches latest 200 trades from api.quiverquant.com\nInserts into local SQLite with unique trade_key deduplication\nFirst run initializes DB and reports newest trade\nSubsequent runs detect new trades, filter to buys/sells above threshold\nWrites formatted alert to data/pending_congress_alert.txt for OpenClaw pickup\nKeeps last 50 alerts in data/new_trades.json\nNetwork and Data\nOnly outbound connection: api.quiverquant.com (Quiver Quant API)\nStorage: local SQLite file + JSON alert files in data/\nNo external endpoints besides the Quiver API\nRestrict file permissions on data directory (chmod 700 data/)\nAlert Format\n🏛️ 3 new congress trade(s) detected:\n\n🟢 PURCHASE: Nancy Pelosi (D) [Rep]\n   $NVDA — $1,000,001 - $5,000,000\n   Trade: 2026-02-10 | Reported: 2026-02-14\n\n🔴 SALE: Dan Crenshaw (R) [Rep]\n   $MSFT — $15,001 - $50,000\n   Trade: 2026-02-09 | Reported: 2026-02-14\n\nCustomization\nMIN_TRADE_AMOUNT: raise/lower via env var to change alert threshold\nFetch limit: change limit=200 in fetch_trades() for broader sweeps\nCron frequency: reduce to every 5 or 15 minutes if you prefer less polling"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/Armax/congress-trades",
    "publisherUrl": "https://clawhub.ai/Armax/congress-trades",
    "owner": "Armax",
    "version": "1.1.4",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "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"
  }
}