Sector-specific operating metrics
calculate_sector_metricsSector-metric engine. Compute the metrics that anchor valuation in specific industries: SaaS (ARR, NRR, magic number, Rule of 40), marketplaces (take rate, GMV multiple), lending (LTV/CAC), and crypto (NVT, Metcalfe). It returns operating metrics, not a valuation; use them as inputs to calculate_market_multiple or calculate_dcf. Methods: ltv: arpu, gross_margin, churn_rate; cac: sales_marketing_expense, new_customers; arr: subscription_values; nrr: starting_revenue, ending_revenue, expansion_revenue; magic_number: net_new_arr, sales_marketing_expense_prior; rule_of_40: growth_rate, profit_margin; take_rate: revenue, gmv; gmv_multiple: gmv, ev_gmv_multiple; retention: retained_customers, starting_customers; trl: market_size, market_share, margin, exit_multiple, trl_discount; break_even: fixed_costs, asp, variable_cost; gross_margin: asp, variable_cost; token: transaction_volume, price_per_tx, velocity, supply; nvt: market_cap, transaction_volume; metcalfe: n, coefficient. Supply exactly one method with its declared inputs (no defaults). An unknown method, a missing input, or an extra field returns an error envelope (code INVALID_ARGUMENT) instead of raising.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | Node/participant count n (>=0). | |
| asp | No | Average selling price per unit. | |
| gmv | No | Gross merchandise value in reporting currency. | |
| arpu | No | Average revenue per user per period. | |
| margin | No | Operating margin as a decimal. | |
| method | Yes | Formula to apply; the tool description lists the exact inputs each value requires. | |
| supply | No | Token supply. | |
| revenue | No | Base-year revenue in reporting currency. | |
| velocity | No | Token velocity. | |
| churn_rate | No | Periodic churn rate as a decimal. | |
| market_cap | No | Market capitalisation. | |
| coefficient | No | Scaling coefficient (Metcalfe). | |
| fixed_costs | No | Period fixed costs. | |
| growth_rate | No | Periodic growth rate as a decimal (0.03 = 3%). | |
| market_size | No | Total addressable market in reporting currency. | |
| net_new_arr | No | Net new ARR in the period. | |
| gross_margin | No | Gross margin as a decimal (0.80 = 80%). | |
| market_share | No | Achievable market share as a decimal. | |
| price_per_tx | No | Value per transaction. | |
| trl_discount | No | Technology-readiness risk discount as a decimal. | |
| exit_multiple | No | Exit multiple on the final flow, e.g. 8.0 for 8x. | |
| new_customers | No | Customers acquired in the period. | |
| profit_margin | No | Profit margin as a decimal. | |
| variable_cost | No | Variable cost per unit. | |
| ending_revenue | No | Revenue from the cohort at period end. | |
| ev_gmv_multiple | No | EV/GMV multiple. | |
| starting_revenue | No | Revenue from the cohort at period start. | |
| expansion_revenue | No | Expansion revenue from the cohort. | |
| retained_customers | No | Customers retained at period end. | |
| starting_customers | No | Customers at period start. | |
| transaction_volume | No | Transaction volume for the period. | |
| subscription_values | No | Subscription revenue per customer. | |
| sales_marketing_expense | No | Sales and marketing spend for the period. | |
| sales_marketing_expense_prior | No | Prior-period sales and marketing spend. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Error detail, present only when status='error'. | |
| steps | No | Ordered computation steps, when the method reports them. | |
| value | No | Primary result: a number for scalar methods, an object for valuation methods. | |
| method | No | Method or tool name that produced the result. | |
| status | Yes | 'ok' on success, 'error' on failure. | |
| ticker | No | Ticker the result pertains to, when applicable. | |
| assumptions | No | Inputs and assumptions used, echoed for traceability. | |
| formula_ref | No | Formula or standards reference for the method. | |
| data_timestamp | No | ISO-8601 UTC timestamp of the underlying data, when fetched. |