소스 정보
- 저장소
- johnalbertini14-glitch/openclaw-skills
- 최근 소스 활동
- 2026년 2월 2일 03:35
- 감지된 SKILL.md 언어
- 영어
- 스타
- 1
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/johnalbertini14-glitch/openclaw-skills --skill clawback명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | clawback |
| description | Mirror congressional stock trades with automated broker execution and risk management |
| version | 1.0.0 |
| author | dayne |
| metadata | {"openclaw":{"requires":["python3","pdfplumber","selenium","yfinance"],"config":["BROKER_API_KEY","BROKER_API_SECRET","BROKER_ACCOUNT_ID"],"optional_config":["TELEGRAM_BOT_TOKEN","TELEGRAM_CHAT_ID"]}} |
Mirror congressional stock trades with automated broker execution
ClawBack 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.
| Strategy | Win Rate | Return | Sharpe |
|---|---|---|---|
| 3-day delay, 30-day hold | 42.9% | +6.2% | 0.39 |
| 9-day delay, 90-day hold | 57.1% | +4.7% | 0.22 |
Congressional leaders have outperformed the S&P 500 by 47% annually according to NBER research.
# Clone and setup
git clone https://github.com/openclaw/clawback
cd clawback
python3 -m venv venv && source venv/bin/activate
pip install -r requirements.txt
# Configure secrets
python3 src/config_loader.py setup
# Authenticate with broker
python3 src/main.py interactive
# Select option 1 to authenticate
# Set up automation
./scripts/setup_cron.sh
ClawBack reads secrets from environment variables or config/secrets.json:
{
"BROKER_API_KEY": "your-broker-api-key",
"BROKER_API_SECRET": "your-broker-api-secret",
"BROKER_ACCOUNT_ID": "your-account-id",
"TELEGRAM_BOT_TOKEN": "optional-for-notifications",
"TELEGRAM_CHAT_ID": "optional-for-notifications"
}
ClawBack uses an adapter pattern for broker integration. Each broker implements a common interface defined in broker_adapter.py.
| Broker | Adapter | Status |
|---|---|---|
| E*TRADE | etrade_adapter.py | Supported |
| Schwab | schwab_adapter.py | Planned |
| Fidelity | fidelity_adapter.py | Planned |
To specify which broker to use, set broker.adapter in your config:
{
"broker": {
"adapter": "etrade",
"credentials": {
"apiKey": "${BROKER_API_KEY}",
"apiSecret": "${BROKER_API_SECRET}"
}
}
}
All data is scraped directly from official government sources:
| Source | Data | Method |
|---|---|---|
| House Clerk | House PTR filings | PDF parsing |
| Senate eFD | Senate PTR filings | Selenium scraping |
No third-party APIs required for congressional data.
Edit config/config.json to customize:
{
"strategy": {
"entryDelayDays": 3,
"holdingPeriodDays": 30,
"purchasesOnly": true,
"minimumTradeSize": 50000
},
"riskManagement": {
"positionStopLoss": 0.08,
"trailingStopActivation": 0.10,
"trailingStopPercent": 0.05,
"maxDrawdown": 0.15
}
}
# Interactive mode
python3 src/main.py interactive
# Single check cycle
python3 src/main.py run
# Scheduled trading
python3 src/main.py schedule 24
# Run backtest
python3 src/backtester.py
# Install cron jobs
./scripts/setup_cron.sh
# Manual runs
./scripts/run_bot.sh check # Check for new trades
./scripts/run_bot.sh monitor # Check stop-losses
./scripts/run_bot.sh full # Both
clawback/
├── src/
│ ├── main.py # Main entry point
│ ├── congress_tracker.py # Congressional data collection
│ ├── trade_engine.py # Trade execution & risk management
│ ├── broker_adapter.py # Abstract broker interface
│ ├── etrade_adapter.py # E*TRADE broker implementation
│ ├── database.py # SQLite state management
│ └── config_loader.py # Configuration handling
├── config/
│ ├── config.json # Main configuration
│ └── secrets.json # API keys (git-ignored)
├── scripts/
│ ├── run_bot.sh # Cron runner
│ └── setup_cron.sh # Cron installer
└── data/
└── trading.db # SQLite database
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.
MIT License - See LICENSE file
Built with ClawBack for the OpenClaw community