Risk policy engine returning exposure caps, stablecoin floors, and risk budgets for crypto portfolio workflows.
What it does
The Selun Policy Envelope endpoint is a synchronous, payment-gated x402 service that computes risk policy constraints for crypto portfolio construction. Given a risk tolerance (Conservative, Balanced, Growth, or Aggressive), investment timeframe (<1 year, 1–3 years, 3+ years), and an optional portfolio segment (Bluechips, Memecoins, Gaming, Yield Farm), it returns exposure caps, stablecoin floor percentages, risk budget parameters, authorization constraints, and segment-aware universe guidance. These outputs serve as hard constraints that any downstream allocation must satisfy.
The endpoint is part of the Selun suite by Sagitta Systems, which also includes Market Regime classification, Asset Scorecard scoring, full Allocation, Allocation with Report, and Rebalance endpoints. Policy Envelope is one of the lower-cost synchronous tools ($0.25 USDC per call) designed to be called independently or as a building block in larger agent pipelines. Payment is settled in USDC on Base (chain ID eip155:8453) via the x402 protocol using the Coinbase CDP facilitator. No API key or account is required — the caller pays per request by attaching a PAYMENT-SIGNATURE header.
The endpoint accepts POST requests with a JSON body containing a required decisionId, riskTolerance, and timeframe, plus an optional portfolioSegment. It supports an Idempotency-Key header for safe retries. The response schema includes a success boolean, an executionModelVersion string, and a data object containing the computed policy envelope. The service is live and returning proper 402 payment challenges as of the probe date.
Capabilities
Use cases
- —Computing hard risk constraints before running a crypto portfolio allocation
- —Validating policy parameters independently in governance or compliance workflows
- —Feeding exposure caps and risk budgets into a custom allocation or rebalancing pipeline
- —Monitoring whether current holdings violate policy constraints for a given risk profile
- —Building multi-step agent workflows that separate policy scoping from asset selection
Fit
Best for
- —AI agents orchestrating multi-step crypto portfolio construction pipelines
- —Developers building automated portfolio management tools that need explicit risk guardrails
- —Governance workflows requiring independent policy parameter validation before allocation
Not for
- —Users who need a complete portfolio allocation in one call (use the Allocation endpoint instead)
- —Traditional equity or fixed-income portfolio management — this is crypto-focused
- —Users without an x402-compatible client or USDC on Base for payment
Quick start
curl -X POST https://selun.sagitta.systems/agent/x402/policy-envelope \
-H 'Content-Type: application/json' \
-d '{
"decisionId": "my-decision-001",
"riskTolerance": "Balanced",
"timeframe": "1-3_years",
"portfolioSegment": "Bluechips"
}'
# Returns 402 with PAYMENT-REQUIRED header.
# Sign and resend with PAYMENT-SIGNATURE to get the policy envelope.Example
Request
{
"timeframe": "1-3_years",
"decisionId": "my-decision-001",
"riskTolerance": "Balanced",
"portfolioSegment": "Bluechips"
}Response
{
"data": {
"timeframe": "1-3_years",
"decisionId": "my-decision-001",
"riskTolerance": "Balanced",
"policyEnvelope": {
"riskBudget": {},
"exposureCaps": {},
"stablecoinFloor": 0.15,
"universeGuidance": {},
"authorizationConstraints": {}
},
"portfolioSegment": "Bluechips"
},
"success": true,
"executionModelVersion": "Selun-1.0.0"
}Endpoint
Quality
Full OpenAPI 3.1 schema with typed request body, clear pricing, live 402 challenge confirmed, and detailed pricing page. Docked because the response data object uses additionalProperties:true with no detailed schema for the policy envelope fields, and no example response is provided in the docs — the example_response_json above is inferred from the description.
Warnings
- —Response data schema is opaque (additionalProperties: true) — exact fields in the policy envelope are not documented.
- —Example response is inferred from endpoint description, not from actual observed output.
- —This endpoint provides financial risk parameters for crypto portfolios — it is in a regulated-adjacent category. Users should perform their own due diligence.
- —robots.txt blocks GPTBot entirely; ClaudeBot is allowed with restrictions on /api/ and /admin.
Citations
- —Policy Envelope costs $0.25 USDC per call, fixed pricinghttps://selun.sagitta.systems/pricing
- —Payment is in USDC on Base (eip155:8453) via Coinbase CDP facilitatorhttps://selun.sagitta.systems/pricing
- —Policy Envelope is synchronous and returns results immediatelyhttps://selun.sagitta.systems/pricing
- —Computes exposure caps, stablecoin floor, and risk budget for a given risk profile and timeframehttps://selun.sagitta.systems/pricing
- —Required fields: decisionId, riskTolerance, timeframe; optional: portfolioSegment with enum values Bluechips, Memecoins, Gaming, Yield Farmhttps://selun.sagitta.systems
- —Risk tolerance options: Conservative, Balanced, Growth, Aggressive; timeframe options: <1_year, 1-3_years, 3+_yearshttps://selun.sagitta.systems
- —Endpoint is live and returning 402 payment challengeshttps://selun.sagitta.systems/agent/x402/policy-envelope
- —No account or API key required — pay per call via x402https://selun.sagitta.systems/pricing