{"uid":"cap_egVpuxx1w6eWnnvmgWFh9","slug":"sec-edgar-ttm-financial-ratio-engine-727b30be","name":"SEC EDGAR TTM Financial Ratio Engine","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.","url":"https://mtbandy--sec-ratio-engine-serve-app.modal.run/ratios","method":"GET","headers":{},"bodySchema":{"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":"Required: Stock ticker symbol (e.g. AAPL, MSFT, NVDA)"}}}}},"output":{"type":"object","properties":{"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_975GgzC11FTav33NhiuSE","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates 9 trailing-twelve-month (TTM) financial ratios for a US-listed stock from live SEC EDGAR XBRL filings, given a ticker and current stock price.","exampleAgentPrompt":"Pull the 9 TTM financial ratios for NVDA from SEC EDGAR filings — the current stock price is $134.50.","exampleUseCases":[{"title":"Fundamental stock valuation check","prompt":"I'm evaluating MSFT as a potential investment — can you grab all 9 TTM financial ratios from their SEC filings? The stock is trading at $415 right now."},{"title":"Comparing leverage and liquidity metrics","prompt":"Get me the Debt/Equity, Current Ratio, and Interest Coverage ratios for Tesla from SEC EDGAR — current price is $178."},{"title":"Screener enrichment for cheap stocks","prompt":"I have GOOG on my watchlist at $176. Pull the P/E, P/FCF, EV/EBITDA, and P/B ratios from their latest SEC XBRL filings so I can see if it's undervalued."}],"resultDescription":"Returns a JSON object containing up to 9 TTM financial ratios (P/E, P/OCF, P/FCF, P/B, EV/EBITDA, ROIC %, Debt/Equity, Current Ratio, Interest Coverage), each linked to the underlying SEC EDGAR accession numbers used in the calculation. Null values are returned for ratios that cannot be computed due to missing US-GAAP taxonomy tags (common for financial institutions and IFRS ADRs).","failureModes":["Null returned for specific ratios when balance sheet items are unclassified (common for banks and insurance companies)","Null returned for IFRS ADRs that lack US-GAAP XBRL taxonomy tags","Invalid or unrecognized ticker symbol returns an error or empty result","Stock price not provided causes computation of price-dependent ratios to fail","EDGAR XBRL data may lag a few days after a new filing is published"],"whenToPreferThis":"Choose this endpoint when you need TTM financial ratios sourced directly from official SEC EDGAR XBRL filings with full accession audit trails, rather than scraped or third-party-aggregated data. It is ideal for US-listed equities with US-GAAP reporting. Prefer it over generic financial data APIs when auditability, regulatory-grade sourcing, and trailing-twelve-month accuracy are required. Not suitable for financial institutions (banks, insurers) or foreign IFRS filers where taxonomy coverage is limited.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T14:54:49.670Z","isFirstParty":false}