Add health check, backtest, correlation tracker, wallet setup, and skills registry
New scripts: - health_check.py: one-command session-start workflow (portfolio + live prices + drawdown + stop losses → GREEN/YELLOW/RED status) - backtest.py: performance analysis with live-readiness assessment against CLAUDE.md prerequisites (20+ trades, >55% win rate, Sharpe >0.5) - correlation_tracker.py: detects hidden correlated exposure in portfolio (e.g., 3 insider-trading bets = one cluster) - setup_wallet.py: burner wallet creation, env var verification, on-chain balance check for live trading setup Also adds: - .env.example template for live trading configuration - .well-known/skills/index.json for Agent Skills registry discovery - Updated SKILL.md files documenting new scripts - .gitignore entries for .env, .polymarket-live/, and key files Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
81f0c9965f
commit
22fcb4355b
@@ -0,0 +1,21 @@
|
||||
# Polymarket Live Trading — Environment Configuration
|
||||
# Copy this file to .env and fill in your values:
|
||||
# cp .env.example .env && chmod 600 .env
|
||||
#
|
||||
# NEVER commit .env to version control.
|
||||
# NEVER use your main wallet. Create a dedicated burner wallet.
|
||||
|
||||
# Required: Burner wallet private key (with 0x prefix)
|
||||
# Create one with: cast wallet new OR python -c "from eth_account import Account; a=Account.create(); print(f'Address: {a.address}\nKey: {a.key.hex()}')"
|
||||
POLYMARKET_PRIVATE_KEY=0x_YOUR_BURNER_WALLET_PRIVATE_KEY_HERE
|
||||
|
||||
# Required: Safety gate — must be "true" for any trade to execute
|
||||
POLYMARKET_CONFIRM=true
|
||||
|
||||
# Max dollars per trade (start small!)
|
||||
# First time: $5 | Learning: $10 | Experienced: $50 | Advanced: $200
|
||||
POLYMARKET_MAX_SIZE=5
|
||||
|
||||
# Max daily loss before all trading halts
|
||||
# First time: $10 | Learning: $25 | Experienced: $100 | Advanced: $500
|
||||
POLYMARKET_DAILY_LOSS_LIMIT=10
|
||||
Reference in New Issue
Block a user