{"uid":"cap_y88TSHJ7CeHGKJwpCAf_i","slug":"24k-labs-financial-ratios-calculator-6aef9957","name":"24K Labs Financial Ratios Calculator","description":"Liquidity, leverage, profitability and efficiency ratios (current, quick, debt-to-equity, ROE, ROA, gross/net margin, interest coverage) from supplied statement line items.","url":"https://api.24klabs.ai/api/financial-ratios","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"cogs":{"type":"number"},"ebit":{"type":"number"},"revenue":{"type":"number"},"inventory":{"type":"number"},"net_income":{"type":"number"},"total_debt":{"type":"number"},"total_assets":{"type":"number"},"total_equity":{"type":"number"},"current_assets":{"type":"number"},"interest_expense":{"type":"number"},"current_liabilities":{"type":"number"}}},"responseSchema":{"type":"json","example":{"roe_pct":15,"current_ratio":2,"debt_to_equity":0.67}},"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_KQXYQ7RYi0klpOyYZMRZi","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":"Computes liquidity, leverage, profitability, and efficiency ratios from supplied financial statement line items","exampleAgentPrompt":"Calculate the full set of financial ratios for this company: current assets $500K, current liabilities $200K, quick assets $300K, total debt $800K, total equity $1M, net income $150K, gross profit $400K, revenue $1M, total assets $2M, and EBIT $200K with interest expense $40K.","exampleUseCases":[{"title":"Startup financial health check","prompt":"I have a startup's balance sheet data — current assets $250K, current liabilities $100K, quick assets $180K, total debt $300K, equity $400K — can you compute their liquidity and leverage ratios so I can assess their financial health?"},{"title":"Investor profitability analysis","prompt":"Run the profitability ratios for a company with net income $5M, revenue $40M, gross profit $12M, and total assets $50M — I want ROE, ROA, and both margin ratios before making an investment decision."},{"title":"Loan underwriting solvency check","prompt":"For a loan application, calculate the interest coverage and debt-to-equity ratios using EBIT of $800K, interest expense $120K, total debt $3M, and total equity $2.5M."}],"resultDescription":"Returns a structured object containing computed financial ratios including current ratio, quick ratio, debt-to-equity ratio, ROE, ROA, gross profit margin, net profit margin, and interest coverage ratio, each as a numeric value derived from the supplied statement line items.","failureModes":["Missing required line items (e.g. no current liabilities) cause division errors or null ratio values","Division by zero if equity, revenue, or assets are supplied as zero","Mismatched units or scale (e.g. mixing thousands and millions) produce nonsensical ratio outputs","Negative equity or revenue edge cases may yield ratios that need contextual interpretation","Invalid or non-numeric input values return a 400-level error"],"whenToPreferThis":"Choose this endpoint when you need instant, structured computation of multiple standard financial ratios from raw statement inputs without building your own formula layer. It is ideal for financial agents, investment screening tools, credit underwriting bots, or reporting pipelines that already have parsed balance sheet and income statement figures and need normalized ratio outputs in a single call. Prefer it over manual computation or general-purpose code execution when auditability and consistent ratio definitions (WCAG-style standardization) matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T14:54:49.669Z","isFirstParty":false}