Creates a new DeFi Llama API client
Optional
customBaseUrl: stringOptional custom base URL for the API
Get current TVL for a specific protocol
Protocol identifier
Promise with current TVL value
Get historical TVL data for a specific chain
Optional
chain: stringChain name (optional)
Whether to return formatted analysis
Promise with chain TVL data or formatted analysis
Get TVL data for a specific protocol
Protocol identifier
Whether to return formatted analysis
Promise with protocol TVL data or formatted analysis
DeFi Llama API client Provides methods to interact with DeFi Llama's API endpoints