{
  "schemaVersion": "1.0",
  "item": {
    "slug": "etrade-pelosi-bot",
    "name": "Etrade Pelosi Bot",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/mainfraame/etrade-pelosi-bot",
    "canonicalUrl": "https://clawhub.ai/mainfraame/etrade-pelosi-bot",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/etrade-pelosi-bot",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=etrade-pelosi-bot",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "AUTOMATED_SYSTEM_SUMMARY.md",
      "CONGRESSIONAL_DATA.md",
      "QUICK_START.md",
      "README.md",
      "SKILL.md",
      "add_trade.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. Then review README.md for any prerequisites, environment setup, or post-install checks. 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. Then review README.md for any prerequisites, environment setup, or post-install checks. 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/etrade-pelosi-bot"
    },
    "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/etrade-pelosi-bot",
    "agentPageUrl": "https://openagent3.xyz/skills/etrade-pelosi-bot/agent",
    "manifestUrl": "https://openagent3.xyz/skills/etrade-pelosi-bot/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/etrade-pelosi-bot/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. Then review README.md for any prerequisites, environment setup, or post-install checks. 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. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "ClawBack",
        "body": "Mirror congressional stock trades with automated broker execution\n\nClawBack tracks stock trades disclosed by members of Congress (House and Senate) and executes scaled positions in your brokerage account. Built on the premise that congressional leaders consistently outperform the market due to informational advantages."
      },
      {
        "title": "Features",
        "body": "Real-time disclosure tracking from official House Clerk and Senate eFD sources\nAutomated trade execution via broker API (E*TRADE adapter included)\nSmart position sizing - scales trades to your account size\nTrailing stop-losses - lock in profits, limit losses\nRisk management - drawdown limits, consecutive loss protection\nTelegram notifications - get alerts for new trades and stop-losses\nBacktesting engine - test strategies on historical data"
      },
      {
        "title": "Performance (Backtest Results)",
        "body": "StrategyWin RateReturnSharpe3-day delay, 30-day hold42.9%+6.2%0.399-day delay, 90-day hold57.1%+4.7%0.22\n\nCongressional leaders have outperformed the S&P 500 by 47% annually according to NBER research."
      },
      {
        "title": "Quick Start",
        "body": "# Clone and setup\ngit clone https://github.com/openclaw/clawback\ncd clawback\npython3 -m venv venv && source venv/bin/activate\npip install -r requirements.txt\n\n# Configure secrets\npython3 src/config_loader.py setup\n\n# Authenticate with broker\npython3 src/main.py interactive\n# Select option 1 to authenticate\n\n# Set up automation\n./scripts/setup_cron.sh"
      },
      {
        "title": "Configuration",
        "body": "ClawBack reads secrets from environment variables or config/secrets.json:\n\n{\n  \"BROKER_API_KEY\": \"your-broker-api-key\",\n  \"BROKER_API_SECRET\": \"your-broker-api-secret\",\n  \"BROKER_ACCOUNT_ID\": \"your-account-id\",\n  \"TELEGRAM_BOT_TOKEN\": \"optional-for-notifications\",\n  \"TELEGRAM_CHAT_ID\": \"optional-for-notifications\"\n}"
      },
      {
        "title": "Supported Brokers",
        "body": "ClawBack uses an adapter pattern for broker integration. Each broker implements a common interface defined in broker_adapter.py.\n\nBrokerAdapterStatusE*TRADEetrade_adapter.pySupportedSchwabschwab_adapter.pyPlannedFidelityfidelity_adapter.pyPlanned\n\nTo specify which broker to use, set broker.adapter in your config:\n\n{\n  \"broker\": {\n    \"adapter\": \"etrade\",\n    \"credentials\": {\n      \"apiKey\": \"${BROKER_API_KEY}\",\n      \"apiSecret\": \"${BROKER_API_SECRET}\"\n    }\n  }\n}"
      },
      {
        "title": "Data Sources",
        "body": "All data is scraped directly from official government sources:\n\nSourceDataMethodHouse ClerkHouse PTR filingsPDF parsingSenate eFDSenate PTR filingsSelenium scraping\n\nNo third-party APIs required for congressional data."
      },
      {
        "title": "Strategy Settings",
        "body": "Edit config/config.json to customize:\n\n{\n  \"strategy\": {\n    \"entryDelayDays\": 3,\n    \"holdingPeriodDays\": 30,\n    \"purchasesOnly\": true,\n    \"minimumTradeSize\": 50000\n  },\n  \"riskManagement\": {\n    \"positionStopLoss\": 0.08,\n    \"trailingStopActivation\": 0.10,\n    \"trailingStopPercent\": 0.05,\n    \"maxDrawdown\": 0.15\n  }\n}"
      },
      {
        "title": "Commands",
        "body": "# Interactive mode\npython3 src/main.py interactive\n\n# Single check cycle\npython3 src/main.py run\n\n# Scheduled trading\npython3 src/main.py schedule 24\n\n# Run backtest\npython3 src/backtester.py"
      },
      {
        "title": "Cron Automation",
        "body": "# Install cron jobs\n./scripts/setup_cron.sh\n\n# Manual runs\n./scripts/run_bot.sh check    # Check for new trades\n./scripts/run_bot.sh monitor  # Check stop-losses\n./scripts/run_bot.sh full     # Both"
      },
      {
        "title": "Architecture",
        "body": "clawback/\n├── src/\n│   ├── main.py              # Main entry point\n│   ├── congress_tracker.py  # Congressional data collection\n│   ├── trade_engine.py      # Trade execution & risk management\n│   ├── broker_adapter.py    # Abstract broker interface\n│   ├── etrade_adapter.py    # E*TRADE broker implementation\n│   ├── database.py          # SQLite state management\n│   └── config_loader.py     # Configuration handling\n├── config/\n│   ├── config.json          # Main configuration\n│   └── secrets.json         # API keys (git-ignored)\n├── scripts/\n│   ├── run_bot.sh           # Cron runner\n│   └── setup_cron.sh        # Cron installer\n└── data/\n    └── trading.db           # SQLite database"
      },
      {
        "title": "Risk Disclaimer",
        "body": "This software is for educational purposes only. Trading stocks involves substantial risk of loss. Past performance of congressional trades does not guarantee future results. The authors are not financial advisors. Use at your own risk."
      },
      {
        "title": "License",
        "body": "MIT License - See LICENSE file\n\nBuilt with ClawBack for the OpenClaw community"
      }
    ],
    "body": "ClawBack\n\nMirror congressional stock trades with automated broker execution\n\nClawBack tracks stock trades disclosed by members of Congress (House and Senate) and executes scaled positions in your brokerage account. Built on the premise that congressional leaders consistently outperform the market due to informational advantages.\n\nFeatures\nReal-time disclosure tracking from official House Clerk and Senate eFD sources\nAutomated trade execution via broker API (E*TRADE adapter included)\nSmart position sizing - scales trades to your account size\nTrailing stop-losses - lock in profits, limit losses\nRisk management - drawdown limits, consecutive loss protection\nTelegram notifications - get alerts for new trades and stop-losses\nBacktesting engine - test strategies on historical data\nPerformance (Backtest Results)\nStrategy\tWin Rate\tReturn\tSharpe\n3-day delay, 30-day hold\t42.9%\t+6.2%\t0.39\n9-day delay, 90-day hold\t57.1%\t+4.7%\t0.22\n\nCongressional leaders have outperformed the S&P 500 by 47% annually according to NBER research.\n\nQuick Start\n# Clone and setup\ngit clone https://github.com/openclaw/clawback\ncd clawback\npython3 -m venv venv && source venv/bin/activate\npip install -r requirements.txt\n\n# Configure secrets\npython3 src/config_loader.py setup\n\n# Authenticate with broker\npython3 src/main.py interactive\n# Select option 1 to authenticate\n\n# Set up automation\n./scripts/setup_cron.sh\n\nConfiguration\n\nClawBack reads secrets from environment variables or config/secrets.json:\n\n{\n  \"BROKER_API_KEY\": \"your-broker-api-key\",\n  \"BROKER_API_SECRET\": \"your-broker-api-secret\",\n  \"BROKER_ACCOUNT_ID\": \"your-account-id\",\n  \"TELEGRAM_BOT_TOKEN\": \"optional-for-notifications\",\n  \"TELEGRAM_CHAT_ID\": \"optional-for-notifications\"\n}\n\nSupported Brokers\n\nClawBack uses an adapter pattern for broker integration. Each broker implements a common interface defined in broker_adapter.py.\n\nBroker\tAdapter\tStatus\nE*TRADE\tetrade_adapter.py\tSupported\nSchwab\tschwab_adapter.py\tPlanned\nFidelity\tfidelity_adapter.py\tPlanned\n\nTo specify which broker to use, set broker.adapter in your config:\n\n{\n  \"broker\": {\n    \"adapter\": \"etrade\",\n    \"credentials\": {\n      \"apiKey\": \"${BROKER_API_KEY}\",\n      \"apiSecret\": \"${BROKER_API_SECRET}\"\n    }\n  }\n}\n\nData Sources\n\nAll data is scraped directly from official government sources:\n\nSource\tData\tMethod\nHouse Clerk\tHouse PTR filings\tPDF parsing\nSenate eFD\tSenate PTR filings\tSelenium scraping\n\nNo third-party APIs required for congressional data.\n\nStrategy Settings\n\nEdit config/config.json to customize:\n\n{\n  \"strategy\": {\n    \"entryDelayDays\": 3,\n    \"holdingPeriodDays\": 30,\n    \"purchasesOnly\": true,\n    \"minimumTradeSize\": 50000\n  },\n  \"riskManagement\": {\n    \"positionStopLoss\": 0.08,\n    \"trailingStopActivation\": 0.10,\n    \"trailingStopPercent\": 0.05,\n    \"maxDrawdown\": 0.15\n  }\n}\n\nCommands\n# Interactive mode\npython3 src/main.py interactive\n\n# Single check cycle\npython3 src/main.py run\n\n# Scheduled trading\npython3 src/main.py schedule 24\n\n# Run backtest\npython3 src/backtester.py\n\nCron Automation\n# Install cron jobs\n./scripts/setup_cron.sh\n\n# Manual runs\n./scripts/run_bot.sh check    # Check for new trades\n./scripts/run_bot.sh monitor  # Check stop-losses\n./scripts/run_bot.sh full     # Both\n\nArchitecture\nclawback/\n├── src/\n│   ├── main.py              # Main entry point\n│   ├── congress_tracker.py  # Congressional data collection\n│   ├── trade_engine.py      # Trade execution & risk management\n│   ├── broker_adapter.py    # Abstract broker interface\n│   ├── etrade_adapter.py    # E*TRADE broker implementation\n│   ├── database.py          # SQLite state management\n│   └── config_loader.py     # Configuration handling\n├── config/\n│   ├── config.json          # Main configuration\n│   └── secrets.json         # API keys (git-ignored)\n├── scripts/\n│   ├── run_bot.sh           # Cron runner\n│   └── setup_cron.sh        # Cron installer\n└── data/\n    └── trading.db           # SQLite database\n\nRisk Disclaimer\n\nThis software is for educational purposes only. Trading stocks involves substantial risk of loss. Past performance of congressional trades does not guarantee future results. The authors are not financial advisors. Use at your own risk.\n\nLicense\n\nMIT License - See LICENSE file\n\nBuilt with ClawBack for the OpenClaw community"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/mainfraame/etrade-pelosi-bot",
    "publisherUrl": "https://clawhub.ai/mainfraame/etrade-pelosi-bot",
    "owner": "mainfraame",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/etrade-pelosi-bot",
    "downloadUrl": "https://openagent3.xyz/downloads/etrade-pelosi-bot",
    "agentUrl": "https://openagent3.xyz/skills/etrade-pelosi-bot/agent",
    "manifestUrl": "https://openagent3.xyz/skills/etrade-pelosi-bot/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/etrade-pelosi-bot/agent.md"
  }
}