clawback
Mirror congressional stock trades with automated broker execution and risk management. Use when you want to track and automatically trade based on congressional disclosures from House Clerk and Senate eFD sources.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/mainfraame/clawbackClawBack
Mirror congressional stock trades with automated broker execution
Agent Instructions
When the user invokes /clawback, execute the appropriate command based on the argument:
Commands
When the user invokes /clawback with any arguments, execute the corresponding command:
| Command | Action |
|---|---|
/clawback setup | Run the setup wizard: Execute {baseDir}/bin/clawback.py setup |
/clawback status | Check system status: Execute {baseDir}/bin/clawback.py status |
/clawback run | Start trading bot: Execute {baseDir}/bin/clawback.py run |
/clawback daemon | Run as background service: Execute {baseDir}/bin/clawback.py daemon |
/clawback test | Test notifications: Execute {baseDir}/bin/clawback.py test |
/clawback (no args) | Show help: Execute {baseDir}/bin/clawback.py --help |
How to Execute Commands
Option 1: Using the wrapper script (recommended) When executing ClawBack commands, always:
- Use the wrapper script at
{baseDir}/bin/clawback.py - Pass the command as an argument (e.g.,
{baseDir}/bin/clawback.py status) - Capture and display the output to the user
Option 2: Direct Python execution (if wrapper doesn't work) If the wrapper script fails, you can run ClawBack directly:
- Change to the skill directory:
cd {baseDir} - Activate the virtual environment:
source venv/bin/activate - Run the CLI:
python -m clawback.cli [command] - Capture and display the output
Important: Always check if the virtual environment exists at {baseDir}/venv. If not, you may need to run the setup first.
/clawback setup - Interactive Setup Flow
When user runs /clawback setup, follow these steps:
Step 1: Install dependencies (if needed)
Check if {baseDir}/venv exists. If not, run:
cd {baseDir} && python3 -m venv venv && source venv/bin/activate && pip install -e .
Step 2: Prompt for E*TRADE credentials Ask the user for each value:
-
Environment: Ask "Do you want to use sandbox (testing) or production (real money)?"
- Default: sandbox
-
Consumer Key: Ask "Enter your E*TRADE Consumer Key (from developer.etrade.com):"
- Required field
-
Consumer Secret: Ask "Enter your E*TRADE Consumer Secret:"
- Required field
-
Account ID: Ask "Enter your E*TRADE Account ID (or leave blank to get it after OAuth):"
- Optional - can be obtained later
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-clawback": {
"enabled": true,
"auto_update": true
}
}
}