All integrations
DefiLlama logo

DefiLlama

Cryptocurrency

Read DeFi's open dataset from DefiLlama, the analytics site the whole sector quotes. Track the TVL of any protocol or chain with the history behind it, price tokens by contract address including ones too small to be listed anywhere, watch stablecoin supply and peg drift per asset and per chain, search 16,000+ yield pools by chain, project, token and APY, and pull the volume, open interest, fees and revenue of DEXs, options venues and perpetual exchanges. No account or API key is required; a DefiLlama Pro key is optional and only raises the rate limit.

26 actions

Actions

Steps your workflow can run in DefiLlama.

List protocolsSearch the 8,000+ DeFi protocols DefiLlama tracks by name, chain, category or minimum TVL, and rank them by TVL, by how much that TVL moved, or by market cap. This is also where you find a protocol's slug, which every other TVL action takes.
Get protocolEverything DefiLlama holds on one protocol: what it is, its current TVL and how that splits across chains, the funding rounds behind it and any exploits on record. Its day-by-day TVL history, and the same history per chain, are available on request; they are left out by default because they are the bulk of a response that reaches 28 MB.
Get protocol TVLOne protocol's current total value locked, as a single number. The quickest possible check: for a threshold alert, a dashboard tile, or a figure to drop into a message.
List chainsEvery chain DefiLlama tracks, with the TVL on it, largest first: which chains hold the most DeFi value right now, and the exact chain names the other actions filter by.
Get TVL historyDaily total value locked over time: across all of DeFi, or on one chain if you name one. Liquid staking and double-counted TVL are excluded, so the all-chains figure is a true total rather than a sum of overlaps.
Get token pricesThe latest price of any token DefiLlama prices, by chain and contract address (including tokens too small or too new to be listed anywhere). Each price comes with a confidence score, so a thin-liquidity quote can be told apart from a solid one.
Get historical token pricesWhat tokens were worth at a moment in the past. DefiLlama answers with the closest price it recorded to the moment you pick, and each result says which moment that actually was.
Get first recorded pricesThe earliest price DefiLlama holds for each token, and when it was recorded. Use it to find how far back a token's data goes before charting it, or as the starting point for a return since inception.
Get token price chartA token's price sampled at regular intervals: the series behind a chart, a moving average, or a volatility check. Set the window with the dates, and how fine it is with the interval.
Get token price changeHow much each token's price moved over a period, as a percentage. Measured backwards from now by default; switch it to look forward from a moment you pick to ask what happened in the week after an event.
Get prices at several momentsPrice a basket of tokens at the same set of past moments, in one call: the shape a comparison table or a period-over-period report wants. Every token is priced at every moment you list.
Get block at a momentThe block closest to a moment in time on a given chain: the block number to run an archive query or a historical balance lookup against. The block's own timestamp comes back too, since it is near but rarely equal to the one you asked for.
List stablecoinsEvery stablecoin DefiLlama tracks, with its circulating supply, its current price and how far that has drifted from the peg. Each row carries the 1-day, 7-day and 30-day change in supply, so you can see which are growing and which are being redeemed. Filter by the currency they track, how they are backed, or the chain they circulate on.
Get stablecoinEverything DefiLlama holds on one stablecoin: what backs it, how it is minted and redeemed, its audits, and how much of it sits on each chain right now. Its day-by-day supply history is available on request, for one chain or for all of them.
Get stablecoin market cap historyDaily stablecoin market cap over time. Leave both filters empty for every stablecoin everywhere; name a chain, a stablecoin, or both, to narrow it: 'USDC on Arbitrum over the last quarter' is one call. Each point also breaks the total down by the currency each stablecoin tracks.
List stablecoin totals by chainHow much stablecoin value sits on each chain right now, largest first: where the dollars actually are, which is a different ranking from where the DeFi TVL is. Each chain's total is also split by the currency the stablecoins track.
Get stablecoin price historyDaily prices for stablecoins: how well each one has actually held its peg, which is the only way to see a depeg after it has recovered. Pick the ones you care about: the endpoint otherwise returns every stablecoin for every day.
Find yield poolsSearch 16,000+ yield pools by chain, project, token, APY and size. Each result separates the base APY from the reward APY (rewards are paid in incentive tokens and can stop) and carries the 30-day mean, so a spot rate can be checked against a steadier one. Setting a minimum TVL is worth doing on any search: the highest raw APYs belong to pools holding a few hundred dollars.
Get pool historyOne yield pool's APY and TVL over time: whether a rate that looks good today has held, and whether money has been arriving or leaving. Takes the pool id that 'Find yield pools' returns.
Get DEX volume overviewTrading volume across every decentralised exchange, ranked by the last 24 hours, with the 7-day, 30-day and all-time totals and the changes behind the ranking. Name a chain to see only the venues trading on it.
Get DEX volume summaryOne exchange's trading volume, broken down by the chains it runs on, with its day-by-day history on request.
Get options volume overviewVolume across every on-chain options venue, ranked by the last 24 hours. Choose whether the figures are notional volume (the face value of the contracts) or premium volume, what buyers actually paid; the two differ by orders of magnitude.
Get options volume summaryOne options venue's volume, in notional or premium terms, broken down by chain, with its day-by-day history on request.
Get open interest overviewOpen interest across the perpetual exchanges DefiLlama tracks, largest first. Open interest is a position rather than a flow (the value of contracts still open right now), so it measures how much leverage is in the market, not how much was traded.
Get fees and revenue overviewWhat every protocol earns, ranked by the last 24 hours. Choose which figure you mean: fees are everything users paid, revenue is the share the protocol keeps, and holders' revenue is the share that reaches token holders. Name a chain to see only what is earned on it.
Get fees and revenue summaryOne protocol's fees or revenue, broken down by the chains it runs on, with its day-by-day history on request.

Connect in a few clicks

Authenticate once and every action and trigger for the app is ready to drop into a workflow. No glue code, no maintenance.

Automate across your stack

Chain apps together with triggers, actions, and logic that move data between your tools automatically, so work happens without you.

Secure by default

Credentials are encrypted and scoped per workspace. Connect the tools your team already trusts with confidence.

Automate DefiLlama with Lodol.

Connect DefiLlama and build your first workflow in minutes. No credit card required.

Free plan available · No credit card required