Calculates 9 TTM financial ratios (P/E, P/OCF, P/FCF, P/B, EV/EBITDA, ROIC %, Debt/Equity,
Calculates 9 TTM financial ratios (P/E, P/OCF, P/FCF, P/B, EV/EBITDA, ROIC %, Debt/Equity, Current Ratio, Interest Coverage) directly from official SEC EDGAR XBRL filings with accession audit trails. Disclosures: Financial institutions and IFRS ADRs return null for unclassified balance sheet or missing US-GAAP taxonomy tags.
3000 (raw units)
price
1
calls / 30d
1
unique payers
2026-09-09
updated
Provider
mtbandy--sec-ratio-engine-serve-app.modal.run · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xb32E6b14B706bC64ec7A67285973c4556e97A8e6",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "3000",
"maxTimeoutSeconds": 60
}
]Output schema
{
"bazaar": {
"info": {
"description": "Calculates 9 TTM financial ratios (P/E, P/OCF, P/FCF, P/B, EV/EBITDA, ROIC %, Debt/Equity, Current Ratio, Interest Coverage) directly from official SEC EDGAR XBRL filings with accession audit trails. Disclosures: Financial institutions and IFRS ADRs return null for unclassified balance sheet or missing US-GAAP taxonomy tags.",
"input": {
"method": "GET",
"queryParams": {
"price": 225.5,
"ticker": "AAPL"
},
"type": "http"
},
"name": "SEC XBRL Ratio Engine",
"output": {
"example": {
"cache_hit": true,
"ratios": {
"current_ratio_mrq": 0.98,
"debt_to_equity_mrq": 1.42,
"ev_to_ebitda_ttm": 24.3,
"interest_coverage_ttm": 29.1,
"price_to_book_mrq": 48.4,
"price_to_earnings_ttm": 31.2,
"price_to_free_cash_flow_ttm": 28.1,
"price_to_operating_cash_flow_ttm": 26.4,
"roic_ttm_pct": 58.2
},
"ticker": "AAPL"
}
}
},
"routeTemplate": "/ratios/:ticker",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"properties": {
"method": {
"type": "string"
},
"queryParams": {
"properties": {
"price": {
"description": "Required: Current stock price in USD",
"type": "number"
},
"ticker": {
"description": "Stock ticker symbol (e.g. AAPL, MSFT, NVDA)",
"type": "string"
}
},
"required": [
"ticker",
"price"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
}
},
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://mtbandy--sec-ratio-engine-serve-app.modal.run/ratios/:ticker" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://mtbandy--sec-ratio-engine-serve-app.modal.run/ratios/:ticker");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://mtbandy--sec-ratio-engine-serve-app.modal.run/ratios/:ticker")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/7018.json, and this resource appears in /discovery/resources and /discovery/search.