
curl -X POST https://api.orthogonal.com/v1/run \
-H 'Authorization: Bearer orth_live_••••' \
-H 'Content-Type: application/json' \
-d '{
"api": "surf",
"path": "/gateway/v1/project/defi/metrics",
"method": "GET",
"query": {
"q": ""
}
}'
{
"success": true,
"data": {
"data": [ 20 items ],
"meta": { … },
"$schema": "https://api.asksurf.ai/schemas/DataResponseProjectMetricPoint.json"
}
}
A real response, recorded when Orthogonal checked this endpoint.
$0.01308per call
Every call costs the same.
You aren't charged for failed calls. A wallet payment for a failed call is refunded.
About this endpoint
Project DeFi Metrics: Returns historical time-series for a single DeFi protocol metric (e.g. daily TVL). Each data point has a Unix timestamp and value.
Available metrics: volume, fee, fees, revenue, tvl, users.
Lookup: by UUID (id) or name (q). Filter by chain and date range (from/to). Returns 404 if the project is not found.
Pagination: check meta.has_more; when true, increase offset or limit to fetch the remaining points.
Note: this endpoint only returns data for DeFi protocol projects (e.g. aave, uniswap, lido, makerdao). Use q with a DeFi protocol name.
Query parameters
idstringSurf project UUID. PREFERRED — always use this when available from a previous response (e.g. project_id from /fund/portfolio or id from /search/project). Takes priority over q.qstringFuzzy entity name search. Only use when 'id' is not available. May return unexpected results for ambiguous names.metricstringMetric to query. Can be volume, fees (or fee alias), revenue, tvl, or users. Defaults to tvl.fromstringStart of time range. Accepts Unix seconds (1704067200) or date string (2024-01-01)tostringEnd of time range. Accepts Unix seconds (1706745600) or date string (2024-02-01)chainstringFilter by chain. Can be ethereum, polygon, bsc, arbitrum, optimism, base, avalanche, fantom, or solana.limitintegerResults per pageoffsetintegerPagination offsetResponse types
$schemaA URL to the JSON Schema for this object.stringMore from Surf API
- KOL rankingGET/gateway/v1/smart-money/kol/ranking$0.01308 per callFixed
- Liquidation chartGET/gateway/v1/market/liquidation/chart$0.01308 per callFixed
- Blockchain SQL queryPOST/gateway/v1/onchain/sql$0.02616 per callFixed
- KOL call historyGET/gateway/v1/smart-money/kol/history$0.01308 per callFixed
- Order book depthGET/gateway/v1/exchange/depth$0.00654 per callFixed
- Latest company financialsGET/gateway/v1/equity/latest-financialsUp to $0.03924 per callResponse-based
- Web page fetchGET/gateway/v1/web/fetch$0.00654 per callFixed
- Matched market pairsGET/gateway/v1/prediction-market/matching/pairs$0.02616 per callFixed
- Polymarket wallet positionsGET/gateway/v1/prediction-market/polymarket/positions$0.02616 per callFixed
- Hyperliquid trader leaderboardGET/gateway/v1/hyperliquid/leaderboard$0.02616 per callFixed
- Perpetual contract snapshotGET/gateway/v1/exchange/perp$0.00654 per callFixed
- KOL activityGET/gateway/v1/smart-money/kol/activity$0.01308 per callFixed