clawback
Mirror congressional stock trades with automated broker execution and risk management
Why use this skill?
Mirror congressional stock trades with automated broker execution. Use ClawBack to track legislative filings and optimize your portfolio with advanced risk management.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/mainfraame/etrade-pelosi-botWhat This Skill Does
ClawBack is a sophisticated financial automation agent designed to monitor, analyze, and execute trades based on publicly disclosed stock transactions by U.S. Congress members. By scraping official filings from the House Clerk and Senate eFD, the agent tracks insider movements and replicates them within your brokerage account. The core engine includes smart position sizing, automated trailing stop-losses, and comprehensive risk management protocols to protect capital while chasing alpha. This tool transforms raw, government-issued PDF and HTML data into actionable, executable trade orders, allowing users to leverage the informational advantages historically observed in congressional portfolios.
Installation
To install ClawBack, ensure you have Python 3.10+ and Git installed on your system. Run the following command in your terminal: clawhub install openclaw/skills/skills/mainfraame/etrade-pelosi-bot. After installation, navigate to the skill directory, initialize your virtual environment, and install dependencies via pip install -r requirements.txt. Execute python3 src/config_loader.py setup to configure your API keys. You will need to authenticate your broker via the interactive CLI and define your risk parameters in config/config.json before enabling the cron jobs for automated execution.
Use Cases
- Automated Copy Trading: Automatically mirror the buying and selling habits of congressional leaders to align your portfolio with legislative trading patterns.
- Risk-Adjusted Alpha Capture: Utilize the backtesting engine to simulate performance before committing capital, then let the agent manage stops and take-profits.
- Alerting & Monitoring: Use the Telegram integration to receive instant notifications whenever a new trade is disclosed or when your automated stop-losses are triggered.
Example Prompts
- "Check for the latest congressional disclosures and summarize any significant positions taken by the House Financial Services Committee members in the last 48 hours."
- "Run a backtest on the 3-day delay strategy for all tech sector trades disclosed in Q3 and report the expected sharpe ratio."
- "Enable auto-execution for new Senate trades exceeding $50k with a trailing stop-loss of 5% and notify me via Telegram once the trade hits my account."
Tips & Limitations
- Market Lag: Disclosures are rarely real-time. Congressional members have 45 days to file, so the informational advantage is subject to significant latency. Use the backtesting tool to understand how these delays affect your specific strategy.
- Risk Management: Always define your account-level drawdown limits in the configuration to prevent aggressive replication from impacting your entire balance during high-volatility events.
- Dependency: The reliability of this skill depends on the structure of official government websites; should the House or Senate update their portal layouts, the scraping modules may require manual maintenance.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-mainfraame-etrade-pelosi-bot": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, file-write, file-read, external-api, code-execution