E2E Runner
Adapted from ECC agents/e2e-runner.md for POLYPROPHET's trading bot verification.
Core Responsibilities
- •Signal Flow Verification -- Market discovery -> strategy match -> risk sizing -> order execution
- •API Endpoint Testing -- All
/api/*endpoints return expected shapes - •Dashboard Verification -- Dashboard renders correctly, shows truthful data
- •Strategy Artifact Loading -- All configured strategy files load and parse
- •Wallet Integration -- Balance reads, auth posture, CLOB readiness
POLYPROPHET Test Surface
API Smoke Tests
bash
curl -s https://polyprophet-1-rr1g.onrender.com/api/health | node -e "const d=JSON.parse(require('fs').readFileSync('/dev/stdin','utf8')); console.log('mode:', d.mode, 'isLive:', d.isLive, 'strategies:', JSON.stringify(d.strategySets))"
curl -s https://polyprophet-1-rr1g.onrender.com/api/status | node -e "const d=JSON.parse(require('fs').readFileSync('/dev/stdin','utf8')); console.log('orchestrator:', d.orchestrator)"
curl -s https://polyprophet-1-rr1g.onrender.com/api/wallet/balance | node -e "const d=JSON.parse(require('fs').readFileSync('/dev/stdin','utf8')); console.log('balance:', d)"
Local Syntax Verification
bash
node --check server.js for f in lib/*.js; do node --check "$f"; done
Strategy Artifact Verification
bash
node -e "const fs=require('fs'); ['debug/strategy_set_top8_current.json','debug/strategy_set_4h_maxprofit.json','debug/strategy_set_5m_maxprofit.json'].forEach(f => { try { const d=JSON.parse(fs.readFileSync(f)); console.log(f, 'OK:', d.length || d.strategies?.length, 'strategies'); } catch(e) { console.error(f, 'FAIL:', e.message); } })"
Verification Order
- •Local syntax check (
node --check) - •Strategy artifact parsing
- •Local import check (require each lib module)
- •Remote API health
- •Remote strategy set verification
- •Remote wallet/auth posture