Programmatic portfolio optimization for AI agents, robo-advisors, and fintech apps. One API call to optimize, search, or stress-test any portfolio.
The FolioForecast API gives you the same professional-grade optimization engine that powers our web app — accessible via simple REST calls.
Let LLM-powered agents optimize portfolios on behalf of users. Provide tickers and constraints, get back optimal weights and metrics.
Power automated portfolio management with Mean-Variance, CVaR, Risk Parity, and robust optimization methods — no quant team required.
Embed optimization results, stress tests, and efficient frontier data into your own app or internal tools.
Four endpoints cover the full optimization workflow. All return JSON.
# Health check — no authentication required curl https://www.folioforecast.com/api/v1/health # Response { "status": "ok", "version": "v1", "api": "FolioForecast Agent API", "auth": "API key (X-API-Key header)", "billing": "Usage-based per compute unit. Stripe metered for growth/scale tiers.", "rate_limiting": "Per API key, tier-based RPM limits. See X-RateLimit-* headers.", "docs": "https://www.folioforecast.com/developers", "openapi_spec": "https://www.folioforecast.com/api/v1/openapi.yaml", "key_format": "ff_live_<32-char-hex>", "optimization_goals": ["equal_weight", "max_sharpe", "min_volatility", ...], "endpoints": { ... } }
Building an AI agent? Import our OpenAPI spec directly:
Each API key is scoped to a single environment and tied to a billing account.
Production keys start with ff_live_ followed by 32 hex characters.
Sandbox keys use ff_test_ — same format, no billing.
Pass your key via the X-API-Key header on every request.
Alternatively, use Authorization: Bearer ff_live_....
Limits are per API key, not per IP. Responses include
X-RateLimit-Remaining and Retry-After headers.
Keys are SHA-256 hashed at rest — we never store your raw key. Rotate keys anytime from your dashboard. HTTPS required on all calls.
Every API call costs a set number of compute units. API access requires an Advisor subscription ($50/mo), which includes 50 compute units. Scale as you grow.
/optimize, /search, /crisis-scenarios, and /asset-metadata
right away. See the OpenAPI spec for full details.
curl from the command line. We'll provide official SDKs for Python and Node.js
when the API reaches general availability.
ff_test_*) hit the same endpoints but don't incur billing. Use them for
development and testing. Switch to production keys (ff_live_*) when you're ready to go live.
The API is coming soon. In the meantime, try the health endpoint and explore the documentation.