* feat(sdk): /pnl methods in TS, Python, and Go clients 3-language SDK parity for the PnL attribution endpoint: - TS: pnl(fills?, marks?) - Python: pnl(fills=None, marks=None) - Go: PnL(ctx, fills, marks) tsc clean; Python imports; go vet+build clean. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(product): health-aggregator Go service services/health-aggregator: read-only ops service that polls the /health endpoints of the Guardrail services concurrently (goroutine per target, 5s timeout) and serves a single aggregate (200 all-up / 503 degraded) with per-target up/latency/error. GET /health, GET /targets; HEALTH_TARGETS / HEALTH_ADDR env. go vet + build clean; smoke verified (degraded 0/3 with no services up). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(dashboard): /quant hub page indexing the quant suite A single index of the quant tools (ta-studio, fees, sizer, orderbook, pnl) — each with its API route and a live example link; shows the CMC-capabilities summary. tsc clean. Dashboard pages -> 73. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * docs(whats-new): Phase 3 quant suite (crate->API->page->SDK->CLI) + health-aggregator Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
875 B
875 B
health-aggregator
A read-only Go ops service that polls the /health endpoints of the Guardrail
services concurrently and serves a single aggregated status. Only issues GETs;
no path into the trading loop.
Run
cd services/health-aggregator
go run . # defaults: api :8080, price-oracle :8090, exporter :9100
HEALTH_TARGETS="api=http://127.0.0.1:8080/health,oracle=http://127.0.0.1:8090/health" go run .
HEALTH_ADDR=:9000 go run .
Endpoints
| Route | Description |
|---|---|
GET /health |
Aggregate status (200 if all up, 503 if any down) with per-target up/latency/error. |
GET /targets |
The configured target list. |
curl -fsS localhost:8095/health | jq
Each target is checked concurrently with a 5s client timeout; the aggregate is
ok only when every target returns 2xx, else degraded.