Skip to main content
Return stock-level factor loadings for a single ticker using the latest stored exposure model
Audience: application and coding agent.

Canonical metadata

  • requestId
  • traceparent

Example request

curl -X GET \
  -H "x-api-key: $SECAPI_API_KEY" \
  -H "secapi-version: 2026-03-19" \
  "https://api.secapi.ai/v1/stocks/AAPL/loadings"

Example response

{
  "object": "list",
  "data": [
    {
      "object": "factor_exposure",
      "id": "factor_exposure:AAPL:VALUE:2026-06-09",
      "subjectType": "security",
      "subjectKey": "AAPL",
      "factorKey": "VALUE",
      "beta": -0.42,
      "percentile": 18.2,
      "confidence": "high",
      "modelName": "secapi_stock_basket_factor_model_v1",
      "asOf": "2026-06-09T22:15:00.000Z",
      "responseMode": "compact",
      "expansionHints": [
        "Use include=diagnostics or response_mode=standard for regression diagnostics such as rSquared, tStat, and observationCount."
      ]
    }
  ],
  "hasMore": false,
  "nextCursor": null,
  "responseMode": "compact",
  "requestId": "req_2ZK8Q1W9F4M6P7R3",
  "traceparent": "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01"
}

Give this prompt to your agent

Failure posture

  • treat non-2xx responses as contract-aware failures, not free-form errors
  • preserve requestId and traceparent in logs and downstream reports
  • if provenance or freshness metadata is present, return it unchanged so trust is not lost in the handoff