Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
9ae1b39
feat: add copytrack data models and error types to models.py
qhuang20 Mar 13, 2026
0088c0d
feat: add copytrack database tables and update reset()
qhuang20 Mar 13, 2026
59836fa
feat: add PolymarketDataClient with get_activity
qhuang20 Mar 13, 2026
f42b4fd
feat: add get_all_trades, get_positions, get_profile to PolymarketDat…
qhuang20 Mar 13, 2026
32309b1
feat: add resolve_username to PolymarketDataClient
qhuang20 Mar 13, 2026
2642626
feat: add copytrack.py with compute_replay_amount sizing logic
qhuang20 Mar 13, 2026
eb604d1
feat: add compute_original_stats for original-side trade metrics
qhuang20 Mar 13, 2026
12dd055
feat: add replay() function to copytrack engine
qhuang20 Mar 13, 2026
eec8268
feat: add copytrack add/list/remove CLI commands
qhuang20 Mar 13, 2026
45995f2
feat: add copytrack trades and replay CLI commands
qhuang20 Mar 13, 2026
586e6dc
feat: add copytrack compare CLI command
qhuang20 Mar 13, 2026
b47508e
refactor(copytrack): use context manager pattern and add sys.exit(1) …
qhuang20 Mar 13, 2026
ed512c5
feat: add copytrack web routes for targets CRUD
qhuang20 Mar 13, 2026
ee65c7e
feat: add copytrack replay and chart web routes
qhuang20 Mar 13, 2026
02ab3a5
test(copytrack): add live E2E tests and edge case coverage
qhuang20 Mar 13, 2026
6f50ded
docs: update test count in CLAUDE.md
qhuang20 Mar 13, 2026
f0af342
test(copytrack): add CLI error path tests for 100% coverage
qhuang20 Mar 13, 2026
0842e5e
docs: update test count to 791 (100% coverage)
qhuang20 Mar 13, 2026
566f32d
feat: migrate copytrack to activity-based replay with REDEEM support
qhuang20 Mar 15, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Forked from [agent-next/polymarket-paper-trader](https://github.com/agent-next/p
# Install
pip install -e ".[dev]"

# Tests (615 non-live + 42 live = 657 total, 100% coverage)
# Tests (791 non-live + 44 live = 835 total, 100% coverage)
python3 -m pytest tests/ -x -q -m "not live" # fast, skip live API tests
python3 -m pytest tests/ -v # verbose
python3 -m pytest tests/ --cov=pm_trader --cov-report=term-missing # coverage
Expand All @@ -24,9 +24,15 @@ python3 -m pytest tests/test_e2e_live.py -v # live API (requires ne
python3 -m pytest tests/test_engine.py -x -q # one file
python3 -m pytest tests/test_engine.py::TestBuy::test_buy_yes -x -q # one test

# Run
# Run (first time only — do NOT re-run init if account already exists, it resets cash)
pm-trader init --balance 10000
pm-trader-mcp # MCP server on stdio

# Dev (frontend + backend with auto-reload, no init needed)
pm-trader web --port 8000 --reload # backend API (FastAPI + Uvicorn)
cd frontend && npm install && npm run dev # frontend (Vite + React, port 5173)
# Frontend proxies /api → http://127.0.0.1:8000
# Open http://localhost:5173 for the dashboard
```

## Architecture
Expand Down
Loading
Loading