{"uid":"cap_zdo8CMBf26t2Uge3H05eV","slug":"24k-labs-financial-ratios-calculator-1dfeb5f6","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/v1/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_BGHbhPHd3zGuukXdkTc78","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 all the key financial ratios for my company — current assets are $500K, current liabilities $200K, inventory $80K, total debt $600K, equity $400K, revenue $2M, gross profit $800K, net income $150K, EBIT $200K, interest expense $40K, and total assets $1M.","exampleUseCases":[{"title":"Startup financial health snapshot","prompt":"I have my startup's latest balance sheet and income statement figures — current assets $1.2M, current liabilities $800K, inventory $100K, total debt $2M, equity $500K, revenue $5M, gross profit $2M, net income $300K, EBIT $450K, interest expense $90K, total assets $3M. Can you calculate all the standard liquidity, leverage, and profitability ratios for me?"},{"title":"Investor due diligence ratio check","prompt":"I'm evaluating a company for investment and I have their financials. Revenue is $10M, gross profit $4M, net income $800K, EBIT $1.2M, interest expense $200K, total assets $8M, equity $3M, total debt $5M, current assets $2M, current liabilities $1.5M, inventory $400K — please compute their ROE, ROA, margins, and leverage ratios."},{"title":"Quarterly earnings ratio tracking","prompt":"Our Q3 numbers just came in — current assets $750K, current liabilities $300K, inventory $60K, total debt $900K, equity $600K, revenue $3.5M, gross profit $1.4M, net income $250K, EBIT $350K, interest expense $70K, total assets $1.8M. Calculate all the standard financial ratios so I can compare them to Q2."}],"resultDescription":"Returns a set of computed financial ratios including current ratio, quick ratio, debt-to-equity ratio, return on equity (ROE), return on assets (ROA), gross profit margin, net profit margin, and interest coverage ratio, each derived from the supplied statement line items.","failureModes":["Missing required line items (e.g. no revenue or equity supplied) result in a 400 error or null ratio values","Division-by-zero scenarios (e.g. zero equity for debt-to-equity) may return null or an error for the affected ratio","Negative or nonsensical input values may produce mathematically valid but financially meaningless ratios","Payment failure or insufficient USDC balance returns a 402 payment required error"],"whenToPreferThis":"Choose this endpoint when you need standardized financial ratio calculations from raw statement line items without building the formulas yourself, especially in agentic pipelines analyzing company financials, screening investments, or benchmarking performance. It is ideal for any workflow where you already have structured income statement and balance sheet data and want liquidity, leverage, profitability, and efficiency metrics returned in one call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T16:46:14.820Z","isFirstParty":false}