---
title: "Compliance ratio trajectory from XBRL facts"
method: GET
path: "/api/insights/{symbol}/trajectory"
tags: ["insights"]
---

# Compliance ratio trajectory from XBRL facts

`GET /api/insights/{symbol}/trajectory`

## Request

- Base URL: `https://api.halalterminal.com`
- URL: `https://api.halalterminal.com/api/insights/{symbol}/trajectory`
- Auth: API key in header `X-API-Key`

Build a time series of the four ratios that drive Shariah
compliance — debt/assets, cash/assets, liquidity/assets,
interest/revenue — from the SEC XBRL company-facts cache (already
populated by /api/filings/{symbol}/facts).

Lets users see whether a stock is trending toward or away from
compliance, e.g. AAPL has held debt/assets ~22% for 8 quarters
while TSLA jumped from 8% to 28% last quarter.

## Path parameters

- `symbol` string, required: Ticker symbol, e.g. AAPL.

## Query parameters

- `quarters` integer: Number of trailing quarters to return.

## Response `200`

Quarter-by-quarter debt/MC, cash/MC, interest/revenue series

- object

## Other responses

- `401`: API key required or invalid
- `422`: Validation Error
- `429`: Quota exceeded

---

[API](https://skmtc.dev/halalterminal/apis/halal-terminal-api.md) · [All operations](https://skmtc.dev/halalterminal/apis/halal-terminal-api/llms.txt) · [OpenAPI document](https://skmtc.dev/halalterminal/apis/halal-terminal-api/revisions/78768b250943?raw)
