Defillama
Retrieve data on DeFi protocols and blockchains.
Retrieve current and historical stats on DeFi protocols and blockchains with Defillama. This plugin allows users to easily access data on the latest trends in decentralized finance. Defillama presents results using markdown tables, making it easy to consume and interpret the information. Stay up-to-date with DeFi trends and make informed decisions with Defillama.
How to
Comments (0)
Try it
API docs
Learn how to use Defillama effectively! Here are a few example prompts, tips, and the documentation of available commands.
Example prompts
-
Prompt 1: "Get the current stats and information about the Lido protocol."
-
Prompt 2: "What is the total value locked (TVL) of the Uniswap protocol?"
-
Prompt 3: "Which are the top 5 protocols that have gained the most TVL in the past week?"
-
Prompt 4: "Give me the historical TVL data of the Aave protocol."
-
Prompt 5: "What are the top yielding pools in Ethereum?"
Features and commands
Feature/Command | Description |
---|---|
getProtocol | This command allows you to get descriptive information and current stats of a protocol. You need to provide the protocol's slug as a parameter. |
getProtocolTvl | This command retrieves the current total value locked (TVL) of a protocol. You need to provide the protocol's slug as a parameter. |
getTopGainers | This command retrieves the protocols that have gained the most TVL. You can specify the number of top gainers to see, the minimum TVL threshold, the time period in which the change occurred, the category to filter protocols by, and the chain or L2 to filter protocols by. |
getHistoricalProtocolTVL | This command allows you to get the historical TVL data of a protocol. You need to provide the protocol's slug as a parameter. |
getTopYields | This command retrieves the top yielding pools. You can specify the number of pools to retrieve, the chain or L2 to filter pools by, whether to filter for stablecoin yield pools, the token or token pair to filter pools by, and whether to filter for single-sided yield pools. |
getFeatures | This command provides information about what this plugin can do. |
getFeedbackForm | This command provides a link to a form where you can give feedback on the plugin. |
getTopChainGainers | This command retrieves the chains that have gained the most TVL. You can specify the number of top gainers to see, the minimum TVL threshold, the time period in which the change occurred. |
getTopChainGrowers | This command retrieves the chains that have the highest percentage growth in TVL. You can specify the number of top gainers to see, the minimum TVL threshold, and the time period in which the change occurred. |
getTopChainLosers | This command retrieves the chains that have lost the most TVL. You can specify the number of top losers to see, the minimum TVL threshold, and the time period in which the change occurred. |
getTopChainShrinkers | This command retrieves the chains that have the highest percentage loss in TVL. You can specify the number of top losers to see, the minimum TVL threshold, and the time period in which the change occurred. |
getInteresting | This command returns interesting/important data on what is happening on-chain regarding protocols, chains, and yields. You can specify the time period to retrieve data for. |