Skip to main content
Get one DeFi protocol

Overview

This endpoint returns one DeFi protocol by its slug, as /defi/protocols lists it: its profile, its current TVL on each chain with each chain’s share, borrowed and staked TVL, its fees and revenue, and its TVL history overall or on one chain. The history is sampled at the last point of each day, week or month, over the last 90 days unless dates are given.

Example

Authorizations

X-API-KEY
string
header
required

A Darvas data API key: dvk_ and 43 characters.

Path Parameters

slug
string
required

The protocol's slug, as /defi/protocols lists it.

Maximum string length: 121
Pattern: ^[a-z0-9][a-z0-9._\[\]-]{0,120}$

Query Parameters

chain
string

Blockchain network filter such as Ethereum, Solana, Base, or Arbitrum.

Maximum string length: 40
Pattern: ^[^\x00-\x08\x0b\x0c\x0e-\x1f]*$
interval
enum<string>
default:day

TVL history sampling: the last point of each day, week, or month (default day).

Available options:
day,
week,
month
Maximum string length: 8
start_date
string<date>

First day of the TVL history, YYYY-MM-DD (default 89 days before end_date).

Maximum string length: 10
end_date
string<date>

Last day of the TVL history, YYYY-MM-DD (default today).

Maximum string length: 10

Response

Get one DeFi protocol: one page.

The answer of GET /defi/protocols/{slug}.

protocol
object
required

A protocol's profile and current TVL.

Example:
chain_tvls
object[]
required

TVL by chain, largest first.

Maximum array length: 200
fundamentals
object | null
required

Fees and revenue, null when none are reported.

Example:
tvl_history
object
required

A protocol's TVL history.

Example:
message
any