# SEC Ratio Engine – TTM Financial Ratios

> SEC Ratio Engine – TTM Financial Ratios is a paid API for AI agents from mtbandy--sec-ratio-engine-serve-app.modal.run, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Calculates trailing twelve-month (TTM) SEC-derived financial ratios for a given stock ticker and current price

## Facts

- Endpoint: GET https://mtbandy--sec-ratio-engine-serve-app.modal.run/ratios/GME
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sec-ratio-engine-ttm-financial-ratios-0dd4b312
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AVGHgViVeY2IcQ6dDp70d

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability sec-ratio-engine-ttm-financial-ratios-0dd4b312
```

Example prompt: What are the TTM SEC-based financial ratios for GME right now? The current stock price is $24.50.

## When to prefer this

Use this endpoint when you need TTM financial ratios computed directly from SEC filing data for a specific stock ticker and you can supply the current market price. It is especially useful for fundamental analysis workflows, valuation screens, or when you want ratios grounded in official regulatory filings rather than third-party data aggregators.

## Known failure modes

- Invalid or unsupported ticker symbol returns an error or empty result
- Missing required 'price' query parameter causes a validation error
- Price supplied as non-numeric value results in schema validation failure
- SEC filing data unavailable or stale for the requested ticker
- Network timeout or Modal cold-start latency on first invocation

## How this service works

TTM SEC Ratio calculation for GME

## Output

Returns a set of trailing twelve-month financial ratios derived from SEC filing data for the requested ticker, incorporating the supplied current stock price to compute valuation multiples such as P/E, P/B, and other key fundamental metrics.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "method": {
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "ticker",
      "price"
     ],
     "properties": {
      "price": {
       "type": "number",
       "description": "Required: Current stock price in USD"
      },
      "ticker": {
       "type": "string",
       "description": "Stock ticker symbol (e.g. NVDA)"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sec-ratio-engine-ttm-financial-ratios-0dd4b312/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mtbandy--sec-ratio-engine-serve-app.modal.run](https://www.zero.xyz/host/mtbandy--sec-ratio-engine-serve-app.modal.run/llms.txt)
