Adds ready-to-run requests for /ta, /fees, /sizer, /orderbook, /pnl, /correlation, /equity/indicators, /portfolio/risk, /cmc/capabilities (67 total). Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Guardrail Postman + REST Client Collection
Ready-to-run request collections for the read-only Guardrail Alpha
API. Every request is a side-effect-free GET,
one per route in the OpenAPI spec (58 routes), grouped into six folders:
| Folder | Covers |
|---|---|
readiness/competition |
/readiness, /compete, /scorecard, /prizes, ... |
market data |
/assets, /quotes, /costs, /indicators, /regime, ... |
strategy/backtest |
/backtest, /walkforward, /sweep, /optimize, ... |
risk/portfolio |
/portfolio, /risk, /drift, /exposure, ... |
identity/proof |
/proof, /agent-card, /bnb-sdk, /skill, ... |
ops |
/health, /events, /cockpit, /metrics, ... |
Two equivalent formats are provided:
guardrail.postman_collection.json— Postman v2.1 collection.guardrail.http— VS Code REST Client / JetBrains HTTP Client file.
Both default to http://localhost:8080. Start the API first (from repo root):
cargo run -p guardrail-api
Importing into Postman
- Open Postman -> Import (top-left).
- Drag in
clients/postman/guardrail.postman_collection.json, or use File -> Upload Files and select it. - The collection Guardrail Alpha API appears with the six folders above.
- The
baseUrlcollection variable defaults tohttp://localhost:8080. To point at another host, open the collection -> Variables tab and edit thebaseUrlcurrent value (e.g.http://127.0.0.1:9000). - Open any request and click Send.
Requests with query parameters (/backtest, /walkforward, /sweep,
/optimize, /rebalance, /costs, /quotes, /indicators, /watchlist,
/policy/compile) ship their query keys in the request's Params tab.
Optional parameters are pre-filled with the spec defaults but disabled so
the request runs with server defaults; tick the checkbox to send them. The one
required parameter (mandate on /policy/compile) is enabled by default.
Using the .http file (VS Code / JetBrains)
VS Code REST Client
- Install the REST Client extension (
humao.rest-client). - Open
clients/postman/guardrail.http. - Edit the
@baseUrlline at the top if your server is elsewhere. - Click the Send Request link that appears above any
GETline.
JetBrains IDEs (IntelliJ, GoLand, PyCharm, ...)
- Open
clients/postman/guardrail.http(built-in HTTP Client, no plugin). - Adjust
@baseUrlif needed. - Click the green Run gutter icon next to any request.
Each request is separated by a ### line (the standard REST Client / JetBrains
request delimiter). Optional query parameters are documented in a comment above
each request so you can append them by hand, e.g.:
### /backtest
# optional query params: steps (default 60), fear_greed (default 60), preset (default balanced)
GET {{baseUrl}}/backtest?steps=120&fear_greed=75&preset=balanced
Accept: application/json
Regenerating
Both files are generated from docs/api/openapi.yaml. If the route list
changes, re-run the generator that produced them (it maps every path in the
spec into the six folders and writes both formats). Keeping them derived from
the spec guarantees the request set stays in lockstep with the server.