Factor Quickstart
Use this path when you want compact factor returns, history, valuation signals, and portfolio attribution in a product or agent workflow.Before you start
- Export
SECAPI_API_KEY - Use
https://api.secapi.aifor production requests - Send the API key in the
x-api-keyheader - Send
secapi-version: 2026-03-19 - Use
response_mode=compact&include=trustfor agent, chart, table, and prompt-context workflows that need audit metadata
requestId, traceparent, freshness, materialization, methodology, and degradedState fields attached to downstream traces when they are present. If a compact response omits a heavier section your workflow needs, request it with include; those fields tell an agent whether the answer is current, how it was constructed, and whether any part of the response fell back to a partial state.
REST
Start with the catalog, then request the smallest return window that proves your workflow.TypeScript
Python
Portfolio Attribution
Use portfolio attribution when you need explained return, residual alpha, contribution rows, and model metadata for a portfolio or model-builder draft.Hosted MCP
Hosted MCP exposes the same factor workflows as agent-callable tools.Copy this factor prompt for your agent.