Calculators
TVL / market-cap ratio calculator API
Compute the TVL-to-market-cap valuation ratio (ratio = TVL/marketCap; optional TVL/FDV) — a DeFi heuristic where >1 suggests undervaluation and <1 a premium, with a rating bucket. Deterministic valuation math. Answers 'is this protocol undervalued','TVL to mcap ratio','TVL vs FDV'.
Price$0.01per request
MethodPOST
Route/v1/calc/cryptocalc-tvl-mcap-ratio
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
calccryptodefitvlmcapvaluationfdvratio
API URL
Integration docshttps://x402.hexl.dev/v1/calc/cryptocalc-tvl-mcap-ratioExample request
{
"tvl": 800000000,
"marketCap": 500000000
}Example response
{
"formula": "ratio = TVL / marketCap",
"tvl": 800000000,
"marketCap": 500000000,
"tvlMcapRatio": 1.6,
"interpretation": "potentially-undervalued"
}Input schema
{
"type": "object",
"required": [
"tvl",
"marketCap"
],
"properties": {
"tvl": {
"type": "number",
"description": "total value locked (USD)",
"examples": [
800000000
]
},
"marketCap": {
"type": "number",
"description": "circulating market cap (USD)",
"examples": [
500000000
]
},
"fdv": {
"type": "number",
"description": "fully-diluted valuation (USD)",
"examples": [
1200000000
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}